New answers tagged

0

A solution that works for ANY programming language you want to automate with. This way, your team can automate using any Selenium tool. Using Docker, you can run your own WebDriverManager server, then all you need to do is write really simple code to download drivers from that: # Mac OSX command docker run -p 4041:4041 -v $HOME/wdm:/root/.m2/repository ...


0

Create a file say Setup.py in package say common: with below content def getOptions(): chromeOptions=Options() chromeOptions.add_experimental_option("prefs", {"download.default_directory": r"C:\Users\Ads\downloadfolder", "download.prompt_for_download": False, "download.directory_upgrade": True &...


0

When you construct the page using PageFactory.initElements(driver, POM.class); the new instance of the page is created so that the field that you are referring is still null. What you are doing though is pretty tricky. I would rework your design actually. However changing the mentioned line to PageFactory.initElements(driver, this); might help you.. P.S. - ...


0

You must be getting the wrong input tag. You're locating the search box with //input[@id='search'], I guess what you need is //input[@id='search_submit'].


0

With the solutions already discussed above the most reliable one is using Browsermob-Proxy But while working with the remote grid machine, Browsermob-proxy isn't really helpful. This is how I fixed the problem in my case. Hopefully, might be helpful for anyone with a similar setup. Add the ModHeader extension to the chrome browser How to download the ...


0

Argh - found it: the file chromedriver. did not have execute-permissions. That wasn't reported as a problem when I instantiated ChromeDriverService - but I also did not create a "regular instance" of it. After setting these permissions, it's running now!


2

No, Google Chrome in headless mode doesn't supports extensions. In the one of his comment, @alexclarke@chromium.org clearly mentioned: I realize a lot of folks would like to use extensions with headless but unfortunately that's a large project which we have /no plans to do/. The problem is Headless Chromium is a content embedder which means it doesn't ...


0

Separate the path with a comma for the next one: --load-extension=path/to/extension,path/to/another/extension Solution from: https://stackoverflow.com/questions/20782557/load-unpacked-chrome-extension-programmatically


Top 50 recent answers are included