Most viewed questions in Selenium

+9 votes
15 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,270 points
74,774 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
27,306 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
18,835 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,150 points
18,654 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
16,939 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
16,902 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
15,764 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,350 points
15,234 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
15,176 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
15,101 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
14,534 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
14,150 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
13,222 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,150 points
12,490 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
12,430 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
11,355 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,430 points
11,350 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
9,704 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,430 points
9,458 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
9,402 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,960 points
9,246 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,430 points
9,013 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,110 points
8,903 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,110 points
8,821 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,430 points
8,660 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,430 points
8,646 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,150 points
8,602 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
8,495 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,110 points
8,453 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
8,214 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,270 points
8,125 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,150 points
7,432 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
7,419 views
0 votes
1 answer

Selenium Exception error -Element is not clickable at point (x, y). Other element would receive the click

Hi Kumar, you can use implicit_wait() method ...READ MORE

May 29 in Selenium by Abha
• 27,180 points
7,284 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,150 points
7,237 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
• 27,180 points
7,000 views
0 votes
2 answers

How to scroll down a webpage in selenium using Java?

This works... JavascriptExecutor jse = (JavascriptExecutor)driver; j ...READ MORE

Apr 3 in Selenium by anonymous
6,991 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,150 points
6,796 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,430 points
6,479 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
6,477 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,150 points
6,439 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
6,247 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,110 points
6,188 views
0 votes
2 answers

Difference between Action and Actions in Selenium

 Actions class is based on builder design pattern ...READ MORE

Jun 21 in Selenium by virendra

edited Jul 26 6,142 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
5,871 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,960 points
5,796 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,150 points
5,752 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,430 points
5,604 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
5,537 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
5,524 views