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
194,213 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 103,045 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,910 points
101,634 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
95,250 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
94,822 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
89,965 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 89,907 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
82,265 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,243 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
76,453 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
74,981 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
72,691 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
69,389 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,910 points
68,818 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
68,348 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
65,681 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
63,395 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
58,378 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
57,735 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
57,594 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 51,022 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
50,792 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
50,687 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,910 points
49,468 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,175 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,013 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
40,708 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
40,478 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
40,309 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,042 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
39,670 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,425 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
38,374 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
38,338 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
37,702 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,436 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,910 points
37,390 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,117 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
34,974 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
34,532 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
33,968 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
33,345 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
33,287 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 33,256 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,148 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,140 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,482 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,149 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
31,529 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,027 views