[英]Is there a way to click on the chrome extension i just installed using java/selenium?
I am automating my test case where I need to install an extension and click on it and perform some action after that.我正在自动化我的测试用例,我需要安装一个扩展并单击它并在此之后执行一些操作。 I am able to install the plugin but not able to click on the same since selenium/ LeanFT isn't allowing me to do so.我可以安装插件,但不能点击它,因为 selenium/LeanFT 不允许我这样做。 Please suggest how do I do that?请建议我该怎么做?
What I have tried - Actions class in java to click on x,y coordinates - not helping me!我尝试过的 - java 中的操作 class 以单击 x,y 坐标 - 对我没有帮助!
Thanks Manav谢谢马纳夫
There doesn't seems to be an easy way to directly click the icon in your chrome browser.似乎没有一种简单的方法可以直接单击 chrome 浏览器中的图标。 However extensions normally have some pages you can access like an options or login page,and you can work from there.但是,扩展程序通常有一些您可以访问的页面,例如选项或登录页面,您可以从那里开始工作。
To figure out the url:要弄清楚 url:
Hope this helps.希望这可以帮助。
I was able to click on the icon(plugin/extension icon) using image matching technique of Sikuli.我能够使用 Sikuli 的图像匹配技术单击图标(插件/扩展图标)。 Thanks for the contribution though.不过感谢您的贡献。 Appreciated !赞赏!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.