I am trying to load a chrome extension using Robot Framework and SeleniumLibrary, I've looked at other examples posted on Stack Overflow but none seem to be working for me. From my reading of the selenium.webdriver.chrome.options
docs I should be able to pass the following option add_extension(argument)
however when attempting to do so I see that my extension is present in the browser but not enabled/activated. Is this not possible purely with only Robot Framework?
Would loading via Python be best?
I've referenced the articles below: How can I add an extension to my chromedriver at the Robot level with Selenium2Library
Download one of version ChromeDriver https://chromedriver.chromium.org/downloads
Extract to chromedriver.exe desktop
Move to chromedriver.exe, where is the your project is exist. (eg Python\Python37 here)
Be sure that your folder Python37 of path is added where is the Properties --> Advanced --> Environment Variables --> Edit environment variable. If its not added, you should add new one.
Then Try to execute your script.
I added ua script example down;
* Settings *
Documentation Anasayfa Test Senaryoları Library Selenium2Library
* Test Cases *
Test Senaryosu yeni
Open Browser https://www.kariyer.net/ chrome Close Browser
Then it should work with chrome driver.
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.