selenium-chromedriver

Does Selenium ChromeDriver currently have support for handling pop-up windows?

此生再无相见时 提交于 2019-12-24 01:17:55
问题 I have a pop-up window that I have to handle after clicking a button on the Chrome browser. As soon as the popup is launched programmatically, any further action by the driver object results in this exception: OpenQA.Selenium.WebDriverException: No response from server for url Also there is no change in number of windowhandles list ( driver.WindowHandles ) after the pop-up window is launched. Please don't confuse this with switching windows in tabs. Does Selenium ChromeDriver currently have

How to ignore ssl_client_socket_impl.cc(1061)] handshake failed in selenium c# ChromeDriver

≡放荡痞女 提交于 2019-12-24 00:57:48
问题 I have added ChromeOptions options = new ChromeOptions(); options.AddArgument("--ignore-certificate-errors-spki-list"); options.AddArgument("--ignore-ssl-errors"); options.AddArgument("test-type"); options.AddArguments("-incognito"); options.AddArgument("no-sandbox"); options.AddArgument("--start-maximized"); driver = new ChromeDriver(options); But still getting: ssl_client_socket_impl.cc(1061)] handshake failed error How to suppress this error from console? 回答1: This error message... [ERROR

Appium (v1.4.16.1), Switch to WebView fails when i try a second time

*爱你&永不变心* 提交于 2019-12-24 00:16:33
问题 Appium (v1.4.16.1), Switch to WebView fails when I try to switch to webview second time. Is there something I should be considering? Please refer to the below use case using Appium on Android- Launch Android Device > Perform some actions Switch context = WebView_1 > Perform some actions Switch context = Native_App Switch context = WebView_1 > Perform some actions In Step#2 and Step#4, it is the same WebView_1, but the content is different. Say: step#2 opened html-1 and step#4 opened html-2.

Selenium Chrome driver failed to parse value of getElementRegion

纵饮孤独 提交于 2019-12-23 18:36:50
问题 I get the following error from chrome driver when running my selenium tests with chrome driver. The test works fine with firefox. unknown error: failed to parse value of getElementRegion Here's the code, it fails when trying to click the submit button. I'm using selenium-standalone to run my server, specifying chromedriver with selenium-standalone start --drivers.chrome.version=2.8 and webdriverIO client .url(options.url) .setValue(usernameSelector, username) .setValue(passwordSelector,

How to set up Selenium and ChromeDriver to run in headless mode

让人想犯罪 __ 提交于 2019-12-23 18:10:20
问题 I am trying to run a browser test using xUnit, Selenium, and Chrome Canary (headless mode) but I keep getting this error: OpenQA.Selenium.WebDriverException The HTTP request to the remote WebDriver server for URL http://localhost:58692/session timed out after 60 seconds. Here's my code: var chromeOptions = new ChromeOptions { BinaryLocation = @"C:\Users\<USERNAME>\AppData\Local\Google\Chrome SxS\Application\chrome.exe", DebuggerAddress = "127.0.0.1:9222" }; chromeOptions.AddArguments("no

Python: selenium-chromedriver error on new browser object

雨燕双飞 提交于 2019-12-23 18:09:54
问题 I am receiving the below error upon opening a new chromedriver object. The tests run successfully, but this error shows up in our UnitTest output and is undesirable. I would like to either resolve the error or hide it, if possible. I feel it is important to mention that this output only shows up when running the script from the Windows terminal, not when run from the Python Console. [0406/170246.792:ERROR:child_thread_impl.cc(762)] Request for unknown Channel-associated interface: ui::mojom:

An unhandled exception of type 'System.InvalidOperationException' occurred in WebDriver.dll

怎甘沉沦 提交于 2019-12-23 17:58:38
问题 I'm following a selenium C# tutorial and I'm in the first stage. So when I run my console application I got the following error. An unhandled exception of type 'System.InvalidOperationException' occurred in WebDriver.dll Additional information: unknown error: unrecognized Blink revision: 3b3c00f2d95c45cca18ab944acced413fb759311 And in the console it says Only local connections are allowed My code class Program { static void Main(string[] args) { IWebDriver driver = new ChromeDriver(); driver

“cannot create temp dir for user data dir” error when not running as admin

梦想的初衷 提交于 2019-12-23 16:56:08
问题 I'm just able to run my python selenium code when I run it as admin. If I run it normally I get following error: C:\startup>Python C:/startup/startupWebDriverScript.py Traceback (most recent call last): File "C:/startup/startupWebDriverScript.py", line 26, in connectGuest driver = webdriver.Chrome(chrome_options=chromeOptions,executable_path="C:/Python36/Chrome Webdriver/chromedriver.exe") File "C:\Python36\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 69, in __init__

How to fix this issue element not interactable Selenium Python

浪子不回头ぞ 提交于 2019-12-23 16:17:32
问题 I have the following line in my script code, where the XPath I got it from Selenium IDE that works fine: driver.find_element_by_xpath("(//a[contains(@href, '')])[20]").click() An automation test stops here with this error: Traceback (most recent call last): File "Script.py", line 65, in <module> driver.find_element_by_xpath("//a[contains(@href, '')])[20]").click() File "/usr/lib/python2.7/site-packages/selenium/webdriver/remote/webelement.py", line 80, in click self._execute(Command.CLICK

wait.Until(ExpectedConditions.VisibilityOfAllElementsLocatedBy(By.ClassName(className)) doesn't return any element

大兔子大兔子 提交于 2019-12-23 13:22:46
问题 I need to find IReadOnlyCollection<IWebElement> using WebDriverWait to make sure that elements had been rendered on page. This is my code WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(timeout)); return wait.Until(ExpectedConditions.VisibilityOfAllElementsLocatedBy(By.ClassName("TextInput"))); This code failing on timeout. Meaning that could not find any elements on page with given class name. I added this line of code BEFORE my original code just to make sure that