Most viewed questions in Selenium

+10 votes
17 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,360 points
197,419 views
0 votes
3 answers

How do I resolve the ElementNotInteractableException in Selenium WebDriver?

Hi Abish, ElementNotInteractableException occurs when an element is ...READ MORE

Aug 21, 2019 in Selenium by Abha
• 28,140 points

edited Aug 4, 2023 by Khan Sarfaraz 106,371 views
0 votes
8 answers

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

This below code works for me in ...READ MORE

Dec 14, 2020 in Selenium by Gitika
• 65,890 points
102,796 views
+3 votes
6 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,710 points
96,873 views
0 votes
6 answers

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

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

Feb 13, 2019 in Selenium by anonymous
96,023 views
+1 vote
4 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

edited Aug 4, 2023 by Khan Sarfaraz 91,524 views
0 votes
3 answers

How to close active/current tab without closing the browser in Selenium-Python?

While doing stuff with selenium multiple browsers ...READ MORE

Dec 14, 2020 in Selenium by Roshni
• 10,520 points
90,917 views
0 votes
3 answers

How to print text from a list of all web elements with same class name in Selenium?

Try using List <WebElement> to access all similar elements ...READ MORE

Dec 16, 2020 in Selenium by Roshni
• 10,520 points
86,824 views
+1 vote
5 answers

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

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

Apr 21, 2018 in Selenium by king_kenny
• 3,710 points
82,973 views
0 votes
4 answers

How to setup Chrome driver with Selenium on MacOS?

Hi Nushrat, In MacOs follow the steps and ...READ MORE

Aug 9, 2020 in Selenium by Shipra
78,487 views
0 votes
6 answers

How to get text found between span – selenium

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

Feb 28, 2019 in Selenium by Trying to Figure
76,062 views
0 votes
4 answers

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

If waitings for element, sleeps and oher ...READ MORE

Dec 13, 2019 in Selenium by Douglas
73,534 views
+2 votes
3 answers

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

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

Aug 28, 2019 in Selenium by Shraddha
71,264 views
0 votes
1 answer

How to resolve this error? Element not interactable ...Any solution?

Hi, @Faha, ElementNotInteractableException: Element is not reachable by ...READ MORE

Nov 24, 2020 in Selenium by Gitika
• 65,890 points
70,818 views
0 votes
5 answers

How to use JavaScript in selenium to click an Element?

WebElement element = driver.findElement(By.id("id")); JavascriptExe ...READ MORE

Aug 31, 2020 in Selenium by Sri
• 3,190 points
70,204 views
0 votes
3 answers

What is the difference between relative and absolute XPath?

Absolute Xpath: It contains the complete path ...READ MORE

Dec 20, 2018 in Selenium by Nabarupa
67,001 views
+1 vote
4 answers

Need to wait until page is completely loaded - Selenium WebDriver

You can try something like -  new WebDriverWait(firefoxDriver, ...READ MORE

Dec 21, 2019 in Selenium by Robin
64,133 views
+1 vote
3 answers

Error occurred during initialization of boot layer java.lang.module.FindException: Module Selenium not found

This might probably be coz while creating ...READ MORE

Nov 27, 2019 in Selenium by Sirajul
• 59,230 points
59,434 views
0 votes
1 answer

System.setProperty("webdriver.chrome.driver","") meaning?

The meaning of the statement are almost ...READ MORE

Jan 8, 2019 in Selenium by Nabarupa
59,060 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
58,245 views
0 votes
2 answers

Difference between Action and Actions in Selenium

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

Jun 21, 2019 in Selenium by virendra

edited Jul 26, 2019 54,255 views
0 votes
1 answer

How to Call a Class From another class?

Suppose you have two classes: Class1: public class Class1 ...READ MORE

Aug 8, 2018 in Selenium by Meci Matt
• 9,460 points
52,522 views
0 votes
3 answers

What are the different ways to select an option from a dropdown using Selenium Webdriver?

So follow this steps for solution: First click ...READ MORE

Dec 16, 2020 in Selenium by Roshni
• 10,520 points
51,910 views
0 votes
5 answers

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

n order to perform a 'mouse hover' ...READ MORE

Dec 16, 2020 in Selenium by Gitika
• 65,890 points
50,274 views
0 votes
1 answer

How to input text in the text box without calling the sendKeys()?

Hi Rohan, you can use Javascript Executer ...READ MORE

May 29, 2019 in Selenium by Abha
• 28,140 points
44,996 views
0 votes
5 answers

How to scroll down a webpage in selenium using Java?

 to scroll up or down with Selenium, a JavaScript executor is a ...READ MORE

Dec 16, 2020 in Selenium by Roshni
• 10,520 points
44,539 views
0 votes
1 answer

import org.openqa.selenium.* shows compilation error - The package org.openqa.selenium is not accessible even though I have added the external jar files in the class path.

Here's what you can try  Either keep only selenium-server-standalone-3.141.59.jar as ...READ MORE

Oct 7, 2020 in Selenium by Karan
• 19,610 points
43,101 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
41,687 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 21, 2018 in Selenium by king_kenny
• 3,710 points
41,484 views
0 votes
2 answers

TestNG error:- Cannot find class in classpath

The above link didn't work it means ...READ MORE

Feb 12, 2020 in Selenium by Rashmi Reddy PR
40,810 views
0 votes
1 answer

How can I download Microsoft WebDriver/Edge Driver to use with Selenium?

Hi William, to download Microsoft Webdriver or ...READ MORE

Jul 15, 2019 in Selenium by Abha
• 28,140 points
40,649 views
0 votes
2 answers

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

If you want to get the html ...READ MORE

May 31, 2019 in Selenium by Atul Singh
39,865 views
+1 vote
4 answers

How to get typed text from a textbox by using Selenium Webdriver?

Hey Ashmita, to get the typed text ...READ MORE

Jun 25, 2019 in Selenium by Abha
• 28,140 points
39,691 views
0 votes
1 answer

What is the difference between driver.get() and driver.navigate.to() methods?

Hi Anandita, driver.get() method is used to ...READ MORE

May 30, 2019 in Selenium by Murad
39,573 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, 2019 in Selenium by anonymous
38,056 views
0 votes
1 answer

What is difference between Assert and Verify in Selenium?

Hello, talking about the definition.  Assert: If the assert condition ...READ MORE

Dec 31, 2018 in Selenium by Prasad
37,932 views
0 votes
3 answers

How to install TestNG in eclipse?

Installing TestNG in Eclipse Step 1) Launch Eclipse. On the ...READ MORE

Dec 11, 2020 in Selenium by Gitika
• 65,890 points
37,882 views
0 votes
2 answers

Selenium WebDriver Error: AttributeError: 'list' object has no attribute 'click'

If you are going to use a ...READ MORE

Jan 17, 2020 in Selenium by lwazi
35,920 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,910 points
35,761 views
0 votes
2 answers

How to maximize or minimize a browser window using Selenium webdriver with Python?

from selenium import webdriver # get initial window ...READ MORE

Apr 1, 2020 in Selenium by Rajavenkatesh
35,163 views
+1 vote
2 answers

I'm Getting error as soon as I Initialize driver = new ChromeDriver();

Hi Prajwal, this type of error occurs ...READ MORE

Oct 11, 2019 in Selenium by Abha
• 28,140 points

edited Sep 6, 2023 by Khan Sarfaraz 34,950 views
0 votes
1 answer

How can I handle multiple keyboard keys using Selenium Webdriver?

Hey Jasmine, there are a few ways ...READ MORE

Jun 25, 2019 in Selenium by Raj
34,880 views
0 votes
2 answers

How to save as PDF on Chrome using Selenium

Vaishanvi, Select  ID  selected dropdown or it ...READ MORE

Feb 22, 2020 in Selenium by Abdul
34,084 views
0 votes
2 answers

Check that the element is clickable or not in Selenium WebDriver

Hi , you want to know only is ...READ MORE

Aug 31, 2020 in Selenium by Sri
• 3,190 points
34,079 views
0 votes
1 answer

Run chrome browser in inconginto Mode in Selenium

One other way to launch Chrome in ...READ MORE

Jul 31, 2018 in Selenium by Meci Matt
• 9,460 points
33,739 views
0 votes
1 answer

How to extract text from a web page using selenium and save it as a text file?

Hello Isha, you can checkout this code ...READ MORE

May 7, 2019 in Selenium by Anvi
• 14,150 points
33,629 views
0 votes
1 answer

What is the primary difference between the XPath and CSS selector?

Hello Ushma, the primary difference between XPath ...READ MORE

Jun 24, 2019 in Selenium by Anvi
• 14,150 points

edited Oct 27, 2023 by Khan Sarfaraz 32,774 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,460 points
32,472 views
0 votes
1 answer

What are the different ways of handling authentication popup window using Selenium?

Hey Pragati, authentication popups can be handled ...READ MORE

May 28, 2019 in Selenium by Abha
• 28,140 points
32,376 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,910 points
31,531 views