简体   繁体   中英

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. Please suggest how do I do that?

What I have tried - Actions class in java to click on x,y coordinates - not helping me!

Thanks Manav

There doesn't seems to be an easy way to directly click the icon in your chrome browser. 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:

  1. Navigate in your browser to 'chrome://extensions/'
  2. Find the extensions your are working with (GeoEdge in your case)
  3. Make sure the developer mode is activated in the top right, otherwise activate it in the chrome settings
  4. You should be able to see the ID of the extension now
  5. Navigate to desired page: 'chrome://extensions/EXTENSIONID/PAGE.html

Hope this helps.

I was able to click on the icon(plugin/extension icon) using image matching technique of Sikuli. Thanks for the contribution though. Appreciated !

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM