Most viewed questions in Selenium

+9 votes
14 answers

How to automate gmail login process using selenium webdriver in java?

Check the below code: Here is the working ...READ MORE

Apr 24, 2018 in Selenium by Vardy
• 2,250 points
64,268 views
+1 vote
2 answers

Getting this error: “Element is not clickable at point”

There are 3 possible solutions for this: 1. ...READ MORE

Apr 20, 2018 in Selenium by king_kenny
• 3,650 points
22,323 views
0 votes
2 answers

How to get HTML Source of WebElement in Selenium WebDriver using Python?

You can read innerHTML attribute to get source of ...READ MORE

Jun 13, 2018 in Selenium by Samarpit
• 5,130 points
15,328 views
+4 votes
3 answers

Verifying whether an element present or visible in selenium Webdriver

Below code will help you: To check Element ...READ MORE

Apr 17, 2018 in Selenium by king_kenny
• 3,650 points
15,320 views
0 votes
2 answers

Error: selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH

You can also handle this error with ...READ MORE

Nov 27, 2018 in Selenium by Srujan
13,770 views
0 votes
5 answers

How to open a link in new tab of chrome browser using Selenium WebDriver?

You can open a new tab first. ...READ MORE

Nov 27, 2018 in Selenium by Shrikanth
13,439 views
0 votes
1 answer

How to use JavaScript in selenium to click an Element?

Executing a click via JavaScript has some ...READ MORE

Apr 13, 2018 in Selenium by Shubham
• 13,300 points
13,218 views
+2 votes
4 answers

sendKeys() not working in Selenium Webdriver

this work for me you should update your ...READ MORE

Aug 27 in Selenium by Afif
12,969 views
+1 vote
3 answers

What is the command used to register gecko driver?

System.setProperty("webdriver.gecko.driver", "C:\\gecko ...READ MORE

Jan 9 in Selenium by Frankie
• 9,810 points
12,882 views
+4 votes
2 answers

Can we get the HTTP Response Code in Selenium with Java?

It is indeed possible to get http ...READ MORE

Apr 20, 2018 in Selenium by king_kenny
• 3,650 points
12,793 views
0 votes
3 answers

How to get text found between span – selenium

The text "Search Zone" is not part ...READ MORE

Feb 28 in Selenium by Trying to Figure
12,750 views
0 votes
2 answers

Get text using selenium web driver in python

text = driver.find_element_by_class_name("current-text").getText(); READ MORE

Feb 4 in Selenium by anonymous
12,179 views
+2 votes
1 answer

I want the console.log output from Chrome. I'm working with selenium on Python

So this is how you do it ...READ MORE

May 3, 2018 in Selenium by sniffy_god
• 780 points
11,066 views
+1 vote
1 answer

How to download a file at a specified location through python and selenium using Chrome driver

Create a profile for chrome and define ...READ MORE

Jul 11, 2018 in Selenium by Samarpit
• 5,130 points
10,389 views
0 votes
3 answers

How to specify "ENTER" button functionality in Selenium WebDriver code?

using OpenQA.Selenium.Interactions; Actions builder = new Actions(driver); ...READ MORE

Feb 12 in Selenium by anonymous
9,926 views
0 votes
3 answers

Selenium Webdriver + Java - Eclipse: java.lang.NoClassDefFoundError

I also faced this issue first time, ...READ MORE

Aug 28 in Selenium by Shraddha
9,716 views
0 votes
1 answer

Check that the element is clickable or not in Selenium WebDriver

Use Selenium Waits: WebDriverWait ...READ MORE

Jun 12, 2018 in Selenium by Meci Matt
• 9,420 points
9,520 views
0 votes
1 answer

Not able to open a new URL in a new tab in Selenium

There is a bug in ChromeDriver that ...READ MORE

May 21, 2018 in Selenium by Meci Matt
• 9,420 points
8,493 views
+1 vote
2 answers

Is it possible to scroll down in a webpage using selenium webdriver programmed on python?

I using next code for facebook for ...READ MORE

May 16 in Selenium by mslavikas@gmail.com
8,123 views
0 votes
2 answers

Unable to Click on an Element in Selenium (Python) even after finding it.

Here, I give you working script which ...READ MORE

Sep 19, 2018 in Selenium by Priyaj
• 56,900 points
7,979 views
0 votes
1 answer

How to scroll the Page up or down in Selenium WebDriver? (using java)

Its pretty simple. Check out the below ...READ MORE

Apr 5, 2018 in Selenium by nsv999
• 5,090 points
7,713 views
0 votes
1 answer

Fluent wait example with code

When we try to test the presence ...READ MORE

Jun 5, 2018 in Selenium by walter 123
• 240 points
7,702 views
0 votes
1 answer

TestNG error:- Cannot find class in classpath

The issue is because the project directory ...READ MORE

Mar 23, 2018 in Selenium by nsv999
• 5,090 points
7,477 views
+2 votes
1 answer

How can we handle authentication popup in Selenium WebDriver using Java

The Alert Method, authenticateUsing() lets us skip ...READ MORE

Apr 18, 2018 in Selenium by king_kenny
• 3,650 points
7,383 views
0 votes
1 answer

Click on a button within a pop-up window with python selenium

It's not an Alert but a Modal Dialog Box. You ...READ MORE

Jun 20, 2018 in Selenium by Samarpit
• 5,130 points
7,221 views
+2 votes
2 answers

How can I press ENTER key with the execute_script in selenium python?

The below code containing Keys.ENTER might just ...READ MORE

Mar 27, 2018 in Selenium by nsv999
• 5,090 points
7,128 views
0 votes
1 answer

Downloading and Saving a file to a desired location using Selenium Webdriver

You can set the default download location ...READ MORE

Apr 13, 2018 in Selenium by Meci Matt
• 9,420 points
7,047 views
0 votes
1 answer

Can we use Selenium to work with an already open browser session?

Yup its possible. Instead of a new ...READ MORE

Apr 24, 2018 in Selenium by king_kenny
• 3,650 points
6,882 views
0 votes
1 answer

Clear text from text area using selenium WebDriver

use the below code: driver.find_element_by_id('abc').clear(); READ MORE

Jun 20, 2018 in Selenium by Meci Matt
• 9,420 points
6,799 views
0 votes
1 answer

Using gettext() method for the specific element using Selenium WebDriver

Mistake is that u r printing the ...READ MORE

Apr 10, 2018 in Selenium by Vardy
• 2,250 points
6,431 views
0 votes
1 answer

How do I get current URL in Selenium Webdriver using Python?

Use current_url element. Example: print browser.current_url READ MORE

Aug 8, 2018 in Selenium by Meci Matt
• 9,420 points
6,400 views
0 votes
1 answer

Is it possible to manually set the attribute value of a Web Element using Selenium?

Yes, its very much possible. You just ...READ MORE

May 8, 2018 in Selenium by king_kenny
• 3,650 points
6,217 views
0 votes
1 answer

Click Allow on Show Notifications popup using Selenium Webdriver

Create a instance of ChromeOptions class ChromeOptions options ...READ MORE

Jun 20, 2018 in Selenium by Samarpit
• 5,130 points
6,198 views
0 votes
1 answer

How to get next sibling element using XPath and Selenium for Java?

Below code will help you: Try following-sibling axis : WebElement ...READ MORE

May 15, 2018 in Selenium by Samarpit
• 5,130 points
5,913 views
0 votes
1 answer

Getting a text of elements in div tag having same class name

Basically,there is no need to retrieve element ...READ MORE

May 17, 2018 in Selenium by Samarpit
• 5,130 points
5,734 views
0 votes
2 answers

Need to wait until page is completely loaded - Selenium WebDriver

Either you can use Explicit wait for ...READ MORE

Aug 27 in Selenium by Abha
• 23,960 points
5,733 views
0 votes
1 answer

What are the differences between getText() and getAttribute() functions in Selenium WebDriver?

See, both are used to retrieve something ...READ MORE

Apr 5, 2018 in Selenium by nsv999
• 5,090 points
5,536 views
0 votes
1 answer

C# and Selenium: Wait Until Element is Present

Your logic is just slightly off..The actual ...READ MORE

Apr 20, 2018 in Selenium by king_kenny
• 3,650 points
5,369 views
0 votes
1 answer

To check that the web page is loaded or not using Selenium Web Driver?

The solution is using Implicit Wait which ...READ MORE

May 24, 2018 in Selenium by Meci Matt
• 9,420 points
5,364 views
0 votes
1 answer

Selecting xpath for with multiple conditions using Selenium and Python

Use the XPath in either of the following ways ...READ MORE

Jul 12, 2018 in Selenium by Samarpit
• 5,130 points
5,285 views
+1 vote
2 answers

Error: stale element reference: element is not attached to the page document

go to your code and apply implicit ...READ MORE

Dec 21, 2018 in Selenium by Malik
5,276 views
0 votes
1 answer

Setting the webdriver.chrome.driver system property

When u use Selenium 3.x you should ...READ MORE

Jun 26, 2018 in Selenium by Samarpit
• 5,130 points
4,886 views
+1 vote
2 answers

Drop-down menu option value not working using Selenium (Python)

from selenium.webdriver.support.select import Select inputElementGa ...READ MORE

Nov 28, 2018 in Selenium by Rijhu mal
4,828 views
0 votes
1 answer

Reading data from Excel in my Selenium test

Log4j problems are usually thrown because of ...READ MORE

Apr 6, 2018 in Selenium by nsv999
• 5,090 points
4,724 views
0 votes
1 answer

How to click a link whose href has a substring using Selenium webdriver?

It can be done by using the ...READ MORE

Jul 11, 2018 in Selenium by Meci Matt
• 9,420 points
4,685 views
0 votes
2 answers

I want the screenshot of only a specific element and not the entire page. Is it possible with Selenium Webdriver?

Hey @kappa3010, you can try this. Though ...READ MORE

Dec 31, 2018 in Selenium by Priyaj
• 56,900 points
4,671 views
0 votes
1 answer

In Selenium why does Firefox requires GeckoDriver?

Firefox requires GeckoDriver because: For Mozilla Firefox till ...READ MORE

May 7, 2018 in Selenium by Meci Matt
• 9,420 points
4,656 views
0 votes
1 answer

How to handle Pop-up in Selenium WebDriver using Java

Actually, its pretty simple. Use this code ...READ MORE

Apr 5, 2018 in Selenium by nsv999
• 5,090 points
4,602 views
0 votes
2 answers

Moving mouse pointer to a specific location or element using C# and Selenium

Hi, I will Share my ideas. Here is ...READ MORE

Mar 18 in Selenium by Ellen Dares
4,589 views
0 votes
1 answer

How should I configure the chromedriver.exe in eclipse

Use the page factory pattern, working example: public ...READ MORE

Mar 27, 2018 in Selenium by Atul
• 5,530 points
4,549 views