selenium-chromedriver

What does double dash (--) implies in Selenium ChromeOptions

…衆ロ難τιáo~ 提交于 2021-01-27 13:02:24
问题 I am using selenium with java and I am using some chrome options with it. But I see different usages of chrome options in different sources. I mean some folks using double dash before the option and some do not (like disable-dev-shm-usage and --disable-dev-shm-usage ). Are there any differences between the two usages? 回答1: As per Command-Line Options: Unix tradition encourages the use of command-line switches to control programs, so that options can be specified from scripts. There are three

What does double dash (--) implies in Selenium ChromeOptions

做~自己de王妃 提交于 2021-01-27 12:55:54
问题 I am using selenium with java and I am using some chrome options with it. But I see different usages of chrome options in different sources. I mean some folks using double dash before the option and some do not (like disable-dev-shm-usage and --disable-dev-shm-usage ). Are there any differences between the two usages? 回答1: As per Command-Line Options: Unix tradition encourages the use of command-line switches to control programs, so that options can be specified from scripts. There are three

How to Click the “OK” Button within an Alert using Python + Selenium

心不动则不痛 提交于 2021-01-27 12:52:53
问题 I want to click the "OK" button in this pop up dialog I tried: driver.switchTo().alert().accept(); but it doesn't work 回答1: To click on the OK button within the alert you need to induce WebDriverWait for the desired alert_is_present() and you can use the following solution: WebDriverWait(driver, 10).until(EC.alert_is_present()) driver.switch_to.alert.accept() Note : You have to add the following imports : from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support

Selenium WebDriver loses connection to web page

妖精的绣舞 提交于 2021-01-27 12:45:27
问题 I'm executing an automated test with Selenium ChromeDriver against a form on a web page. When I click the Submit button on the form, my WebDriver is losing connection to the browser/page/components, etc. Any subsequent action against the page objects or the browser results in timeouts because it no longer has a connection. It's as if the submit causes the underlying connection to break. This is the error I get and it's a similar error no matter if I'm trying to click a page object, manipulate

System.InvalidOperationException : Unable to create new service: ChromeDriverService with ChromeDriver and SeleniumGrid on local machine

泄露秘密 提交于 2021-01-27 08:54:19
问题 I had set up Selenium Grid (Both Hub and Node) on my local machine which runs on Windows 10 using below command for registering Hub. java -jar selenium-server-standalone-3.141.59.jar -role hub and for registering a Node, I had used below command java -jar selenium-server-standalone-3.141.59.jar -role node -hub http://10.37.34.2:4444/grid/register -port 5454 On Command Prompt, it displayed that "The node is registered to the hub and ready to use" Verified Grid Console as well at http:/

System.InvalidOperationException : Unable to create new service: ChromeDriverService with ChromeDriver and SeleniumGrid on local machine

我的梦境 提交于 2021-01-27 08:53:02
问题 I had set up Selenium Grid (Both Hub and Node) on my local machine which runs on Windows 10 using below command for registering Hub. java -jar selenium-server-standalone-3.141.59.jar -role hub and for registering a Node, I had used below command java -jar selenium-server-standalone-3.141.59.jar -role node -hub http://10.37.34.2:4444/grid/register -port 5454 On Command Prompt, it displayed that "The node is registered to the hub and ready to use" Verified Grid Console as well at http:/

Proxy authentication popup in Selenium

蓝咒 提交于 2021-01-27 07:41:03
问题 I am working on a project where I need to use a proxy. I am using the Chrome browser and when I run my script it forces me to enter the username and password of the proxy. I have tried passing the username and password with the URL itself, but it is not working. Here is the code: Proxy p = new Proxy(); p.setHttpProxy("in-pr.oxylabs.io:20000"); p.setSslProxy("in-pr.oxylabs.io:20000"); System.setProperty("webdriver.chrome.driver","D:\\Love_Testing\\Senium_Naveen\\chrome Driver\\chromedriver

Proxy authentication popup in Selenium

余生长醉 提交于 2021-01-27 07:40:34
问题 I am working on a project where I need to use a proxy. I am using the Chrome browser and when I run my script it forces me to enter the username and password of the proxy. I have tried passing the username and password with the URL itself, but it is not working. Here is the code: Proxy p = new Proxy(); p.setHttpProxy("in-pr.oxylabs.io:20000"); p.setSslProxy("in-pr.oxylabs.io:20000"); System.setProperty("webdriver.chrome.driver","D:\\Love_Testing\\Senium_Naveen\\chrome Driver\\chromedriver

.NET Core Selenium WebDriver not found

醉酒当歌 提交于 2021-01-27 06:40:20
问题 I've converted an NUnit test project from .NET Framework to .NET Core. When I try to execute a Selenium test using Visual Studio, I am seeing this error: OpenQA.Selenium.DriverServiceNotFoundException : The chromedriver.exe file does not exist in the current directory or in a directory on the PATH environment variable. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html. I've included the Selenium.WebDriver.ChromeDriver Nuget Package and chromedriver.exe

.NET Core Selenium WebDriver not found

南笙酒味 提交于 2021-01-27 06:40:08
问题 I've converted an NUnit test project from .NET Framework to .NET Core. When I try to execute a Selenium test using Visual Studio, I am seeing this error: OpenQA.Selenium.DriverServiceNotFoundException : The chromedriver.exe file does not exist in the current directory or in a directory on the PATH environment variable. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html. I've included the Selenium.WebDriver.ChromeDriver Nuget Package and chromedriver.exe