Most viewed questions in Selenium

0 votes
1 answer

Which exception is raised when an element is not found in an HTML DOM using XPath

Hey, A stale element reference exception is thrown in one of two cases If ...READ MORE

Jul 30, 2020 in Selenium by Sirajul
• 59,230 points
10,316 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,500 points
10,280 views
+1 vote
1 answer

How to perform mouse hovering in Selenium WebDriver (Java)?

You many not actually be able to ...READ MORE

Apr 3, 2018 in Selenium by nsv999
• 5,500 points

edited Aug 22, 2023 by Khan Sarfaraz 10,260 views
0 votes
1 answer

How to find Elements by their Attribute in Python Selenium WebDriver

To find all the <td> tags which have attribute data-sortable-id you ...READ MORE

Jul 19, 2018 in Selenium by Samarpit
• 5,910 points
10,251 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 6, 2018 in Selenium by nsv999
• 5,500 points
10,236 views
+1 vote
2 answers

How to click button selenium python?

Have you tried using implicit_wait method before getting ...READ MORE

May 27, 2019 in Selenium by Abha
• 28,140 points
10,186 views
0 votes
1 answer

Multi threading in Selenium WebDriver

WebDriver is not safe for multithreading.  Thread-safety is ...READ MORE

May 28, 2018 in Selenium by Meci Matt
• 9,460 points
9,999 views
0 votes
1 answer

How @FindBy annotation of Page Factory can be used in Selenium?

Hey Mridul, Page Factory uses annotation @FindBy to ...READ MORE

Jul 4, 2019 in Selenium by Anvi
• 14,150 points
9,973 views
0 votes
1 answer

Getting error: unhandled inspector error: {"code":-32000,"message":"Cannot navigate to invalid URL"}

Hey, @sradha, The error you are getting is ...READ MORE

Dec 31, 2018 in Selenium by Shuvodip
9,923 views
0 votes
1 answer

How to send a report through email using Selenium Webdriver?

Hey Yashmika, to send a report through ...READ MORE

Jul 17, 2019 in Selenium by Anvi
• 14,150 points
9,891 views
+1 vote
0 answers

python selenium error: element is not attached to the page document

I am scraping Banggood, the problem is ...READ MORE

Apr 10, 2020 in Selenium by eslam
• 130 points
9,804 views
0 votes
2 answers

Selenium Webdriver Error: org.openqa.selenium.WebDriverException: unknown error: call function result missing 'value'

Facing Error Exception in thread "main" org.openqa.selenium .WebDriverException: unknown ...READ MORE

Mar 5, 2020 in Selenium by anonymous
9,791 views
0 votes
1 answer

(Protractor) Finding specific row in ng-table by text

Try this Return the filtered elements before trying ...READ MORE

May 10, 2018 in Selenium by Samarpit
• 5,910 points
9,787 views
+1 vote
1 answer

Python + Selenium | How to locate elements in span class & not unique ID

I use the following code to check ...READ MORE

Jan 2, 2020 in Selenium by Karan
9,771 views
0 votes
1 answer

Scrolling down in Protractor

You need to wait for the scrolling ...READ MORE

May 24, 2018 in Selenium by sniffy_god
• 780 points
9,698 views
0 votes
1 answer

What is the use of getOptions() method in Selenium?

Hi Urmila, getOptions() is used to get all ...READ MORE

May 31, 2019 in Selenium by Abha
• 28,140 points
9,689 views
0 votes
1 answer

How to set desired capabilities in Python Selenium Webdriver?

Hello Himani, you can try something like ...READ MORE

Aug 1, 2019 in Selenium by Abha
• 28,140 points
9,684 views
0 votes
1 answer

Downloading Image using send Keys Selenium Chrome

Use the below code to save the ...READ MORE

Jul 20, 2018 in Selenium by Samarpit
• 5,910 points
9,671 views
0 votes
1 answer

Is it possible to handle Windows based pop-ups in Selenium?

Hello Rustam, Selenium doesn’t support windows based ...READ MORE

Jun 4, 2019 in Selenium by Priti
9,660 views
0 votes
1 answer

How to eliminate this error”Cannot instantiate the type Select in selenium webdriver”

Try below code. Select sc = new Select(driver.findElement(By.xpath("your ...READ MORE

May 18, 2018 in Selenium by Samarpit
• 5,910 points
9,582 views
0 votes
1 answer

How to hide the console of the ChromeDriver in python

Have you tried this one?  https://help.applitools.com/hc/en-u ...READ MORE

Feb 16, 2020 in Selenium by Klinsc
9,533 views
0 votes
1 answer

How to switch between tabs on a browser and get titles of each tab using Selenium?

Hi Abhimanyu, you can use following code ...READ MORE

Jul 22, 2019 in Selenium by Abha
• 28,140 points
9,480 views
0 votes
1 answer

How to control Chrome Downloads page Using Selenium c#?

In your case you must replace 'cancel' ...READ MORE

May 7, 2018 in Selenium by Samarpit
• 5,910 points
9,310 views
0 votes
3 answers

How to set Page Load Timeout using C# using Selenium WebDriver

driver.Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(15); READ MORE

Apr 17, 2019 in Selenium by Tim Muir
9,299 views
0 votes
2 answers

How to close browser popup in Selenium WebDriver

driver.quit() READ MORE

Jun 14, 2019 in Selenium by anonymous
9,230 views
0 votes
1 answer

How can I handle a Confirmation Alert pop-up using Python Webdriver?

Hey Sudha, you can use following code ...READ MORE

May 28, 2019 in Selenium by George
9,209 views
0 votes
2 answers

Getting Error in System.setProperty of ChromeDriver

System.setProperty("webdriver.chrome.driver", ...READ MORE

Jan 8, 2019 in Selenium by anonymous
9,153 views
0 votes
1 answer

Python + Selenium - Trying to find element by link containing certain words

2 issues. One thing is, "Catalogues" & ...READ MORE

Mar 28, 2018 in Selenium by nsv999
• 5,500 points
9,124 views
0 votes
1 answer

What is the use of invocationcount in TestNG?

Hey Owen, The invocationcount attribute tells how many ...READ MORE

Jun 19, 2019 in Selenium by anonymous
• 28,140 points
9,114 views
0 votes
1 answer

How to perform scroll operations on a webpage using Python-Selenium Webdriver?

Hey Juhi, look at the below code ...READ MORE

Jul 29, 2019 in Selenium by Anvi
• 14,150 points
9,093 views
0 votes
3 answers

Chropath gets disappeared even after pinning in the browser

@Faha Try writing manually.. why depending on such ...READ MORE

Dec 4, 2020 in Selenium by Nikita
9,067 views
0 votes
1 answer

Input username & password using Python in Selenium WebDriver

You can use the below code: username = ...READ MORE

May 15, 2018 in Selenium by Meci Matt
• 9,460 points
9,060 views
0 votes
1 answer

How to execute multiple classes at once using TestNG?

Hey @Sradha, Yes it is possible in ...READ MORE

Dec 26, 2018 in Selenium by Rashmi
9,053 views
0 votes
1 answer

How to resolve Pycharm Referenced Error with Import Selenium Web driver?

Below will help: Pycharm > Preferences > Project ...READ MORE

Jun 26, 2018 in Selenium by Samarpit
• 5,910 points
9,027 views
0 votes
2 answers

Handling new window using Selenium

You can try something like this too:  ...READ MORE

Aug 27, 2019 in Selenium by Abha
• 28,140 points
8,960 views
0 votes
1 answer

How to use SendKeys (webdriver) command in Rich Text editor that is located in iframe

Send keys directly is the approach that ...READ MORE

Aug 23, 2018 in Selenium by Meci Matt
• 9,460 points
8,925 views
0 votes
2 answers

Alternative of click() in selenium

Depends on your scenario. webDriver click is ...READ MORE

May 6, 2020 in Selenium by Rahul
8,899 views
0 votes
1 answer

How can I send some data to a Prompt Alert box using Selenium Webdriver?

Hey Abhishek, you can use sendKeys() method ...READ MORE

Jul 3, 2019 in Selenium by Abha
• 28,140 points
8,896 views
0 votes
1 answer

How can I check if Internet connection is established on the system or not using Selenium webdriver?

Hey @Misha, you can use this code ...READ MORE

May 21, 2019 in Selenium by Navin
8,861 views
0 votes
1 answer

Selenium WebDriver.get(url) not working

It is a Selenium defect. Problem is ...READ MORE

Jun 7, 2018 in Selenium by Meci Matt
• 9,460 points
8,853 views
0 votes
1 answer

findElement(By.xpath()) not working using Selenium WebDriver

element = findElement(By.xpath("//*[@test-id='test-username']"); element = findElement(By.xpath("//input[@test-id='test-username']"); (*) - any ...READ MORE

Apr 18, 2018 in Selenium by code_ninja
• 6,290 points
8,782 views
0 votes
1 answer

How to scroll until the element is in view using Selenium2Library Keyword?

You have to download the ExtendedSelenium2Library from ...READ MORE

Jun 25, 2018 in Selenium by Samarpit
• 5,910 points
8,761 views
0 votes
2 answers

How to use XPath Helper Tool?

How to Install XPath Helper Plugin for ...READ MORE

Apr 28, 2019 in Selenium by Ajay
8,719 views
0 votes
1 answer

Searching for the element with &nbsp; symbol in selenium

Use Below: //div[@class='Tips' and text()='\u00a0'] READ MORE

Apr 20, 2018 in Selenium by Vardy
• 2,360 points
8,717 views
0 votes
1 answer

How do I close the first tab in chrome using selenium in Java?

You can create an Array list of ...READ MORE

Dec 21, 2018 in Selenium by Shuvodip
8,640 views
0 votes
1 answer

How to disable pop up and alert windows in Firefox browser using Selenium?

Hey Ranjan, you can use these lines ...READ MORE

May 21, 2019 in Selenium by Abha
• 28,140 points
8,620 views
0 votes
1 answer

Selenium-Debugging Error: Element is not clickable at point (X,Y)

Another element is covering the element you ...READ MORE

Jul 2, 2018 in Selenium by Samarpit
• 5,910 points
8,615 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

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

How to send keyboard input to a textbox on a webpage using python selenium webdriver?

Hey Dominic, you can use sendKeys() method ...READ MORE

Jul 31, 2019 in Selenium by Abha
• 28,140 points
8,605 views
0 votes
1 answer

Get coordinates or dimensions of element with Python using Selenium WebDriver

WebElements have the properties such as .size and .location. ...READ MORE

Jul 11, 2018 in Selenium by Meci Matt
• 9,460 points
8,589 views