tagged [selenium]

Using chromedriver with selenium/python/ubuntu

Using chromedriver with selenium/python/ubuntu I am trying to execute some tests using chromedriver and have tried using the following methods to start chromedriver. and and ``` import os from seleniu...

Execute JavaScript using Selenium WebDriver in C#

Execute JavaScript using Selenium WebDriver in C# How is this achieved? [Here](http://code.google.com/p/selenium/wiki/FrequentlyAskedQuestions#Q%3a_How_do_I_execute_Javascript_directly?) it says the j...

Can Selenium interact with an existing browser session?

Can Selenium interact with an existing browser session? Does anybody know if Selenium (WebDriver preferably) is able to communicate with and act through a browser that is already running before launch...

Click in OK button inside an Alert (Selenium IDE)

Click in OK button inside an Alert (Selenium IDE) I need to click the 'Ok' button inside an alert window with a [Selenium](http://seleniumhq.org/) command. I've tried `assertAlert` or `verifyAlert` bu...

5 Jan at 07:46

Selenium C# WebDriver: Wait until element is present

Selenium C# WebDriver: Wait until element is present I want to make sure that an element is present before the webdriver starts doing stuff. I'm trying to get something like this to work: I'm mainly s...

Selenium - 'ITimeouts.ImplicitlyWait(TimeSpan)' is obsolete

Selenium - 'ITimeouts.ImplicitlyWait(TimeSpan)' is obsolete I use the C # project settings implicity: Everything worked. When I installed the new version of selenium-dotnet-3.1.0 my voice this error: ...

How to deal with ModalDialog using selenium webdriver?

How to deal with ModalDialog using selenium webdriver? I am unable to switch to Modal Dialog of given example [http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/showModalDialog2.htm...

Clear text from textarea with selenium

Clear text from textarea with selenium I've got some tests where I'm checking that the proper error message appears when text in certain fields are invalid. One check for validity is that a certain te...

How do I pass options to the Selenium Chrome driver using Python?

How do I pass options to the Selenium Chrome driver using Python? The [Selenium documentation](http://selenium.googlecode.com/svn/trunk/docs/api/py/webdriver_chrome/selenium.webdriver.chrome.webdriver...

Capturing browser logs with Selenium WebDriver using Java

Capturing browser logs with Selenium WebDriver using Java Is there a way to capture browser logs while running automated test cases with Selenium? I found an article on [how to capture JavaScript erro...

16 Jul at 14:55

Python Selenium accessing HTML source

Python Selenium accessing HTML source How can I get the [HTML](http://en.wikipedia.org/wiki/HTML) source in a variable using the Selenium module with Python? I wanted to do something like this: How ca...

17 Apr at 11:48

How can I get text of an element in Selenium WebDriver, without including child element text?

How can I get text of an element in Selenium WebDriver, without including child element text? Consider: Getting "This is some" is nontrivial. For instance, this returns "This is some text": How does o...

How to open a link in new tab (chrome) using Selenium WebDriver?

How to open a link in new tab (chrome) using Selenium WebDriver? ``` System.setProperty("webdriver.chrome.driver", "D:\\softwares\\chromedriver_win32\\chromedriver.exe"); WebDriver driver = new Chrome...

Clicking at coordinates without identifying element

Clicking at coordinates without identifying element As part of my Selenium test for a login function, I would like to click a button by identifying its coordinates and instructing Selenium to click at...

7 Nov at 05:53

How can I ask the Selenium-WebDriver to wait for few seconds in Java?

How can I ask the Selenium-WebDriver to wait for few seconds in Java? I'm working on a Java Selenium-WebDriver. I added and because my Applications takes few seconds to load the User Interface. So I s...

sendKeys() in Selenium web driver

sendKeys() in Selenium web driver I am new to . I just want to send keys to a username text box and send a tab key both at a time so that text box can check for availability of username. Here is the c...

13 Sep at 13:39

How to get the URL of the current window using Selenium WebDriver in C#?

How to get the URL of the current window using Selenium WebDriver in C#? In my application when sign-in, then it navigates to another page. Now I need to get that new URL using WebDriver in selenium C...

23 Jul at 06:28

How can I bypass the Google CAPTCHA with Selenium and Python?

How can I bypass the Google CAPTCHA with Selenium and Python? How can I bypass the Google CAPTCHA using Selenium and Python? When I try to scrape something, Google give me a CAPTCHA. Can I bypass the ...

How to get an attribute value from a href link in Selenium

How to get an attribute value from a href link in Selenium I am trying to get the link from a "href" attribute: What I am doing: ``` ReadOnlyCollection lists1 = driver.FindElements(By.ClassName("dl_li...

1 Dec at 04:40

Getting "The path to the driver executable must be set by the webdriver.chrome.driver system property"though set correct path

Getting "The path to the driver executable must be set by the webdriver.chrome.driver system property"though set correct path My code is very simple code: have downloaded and add

How can I ask the Selenium-WebDriver to wait for few seconds after sendkey?

How can I ask the Selenium-WebDriver to wait for few seconds after sendkey? I'm working on a C# Selenium-WebDriver. After send key, I want to wait few seconds. I do the following code to wait for 2 se...

27 Dec at 10:10

How to make Firefox headless programmatically in Selenium with Python?

How to make Firefox headless programmatically in Selenium with Python? I am running this code with python, selenium, and firefox but still get 'head' version of firefox: I also tried som

On Selenium WebDriver how to get Text from Span Tag

On Selenium WebDriver how to get Text from Span Tag On Selenium Webdriver, how I can retrieve text from a span tag & print? I need to extract the text `UPS Overnight - Free` HTML code are as follow: ...

14 Mar at 09:11

How to get selected option using Selenium WebDriver with Java

How to get selected option using Selenium WebDriver with Java I want to or value of a using Selenium WebDriver and then it on the . I am able to select any value from the drop down, but I am not able ...

Close browser completely with selenium C# webdriver

Close browser completely with selenium C# webdriver I am doing some automated testing with Selenium C# Webdriver. And after finishing the tests I want to close the browser. I initialize the driver wit...

10 Mar at 03:29