Most viewed questions in Selenium

0 votes
1 answer

How to click on Image in Selenium Webdriver?

Hello Lalit, I guess you mean to ...READ MORE

May 9, 2019 in Selenium by Anvi
• 14,150 points
12,084 views
0 votes
1 answer

How to find element using classname and tagname using selenium webdriver?

Use the below code or you can ...READ MORE

Apr 17, 2018 in Selenium by king_kenny
• 3,710 points
12,071 views
0 votes
1 answer

How to create a Base Class in Selenium and use it with test scripts?

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

Jul 18, 2019 in Selenium by Anvi
• 14,150 points
12,062 views
0 votes
1 answer

Error occurs while creating new maven project and could not resolve archetype

Hello, @Boopathy, I had the same problem. I ...READ MORE

Dec 30, 2020 in Selenium by Reshma
12,003 views
+1 vote
1 answer

How can I get All Text in robot framework ?

${elem} = Get WebElements ...READ MORE

Jan 29, 2020 in Selenium by Abhishek
• 160 points
11,965 views
0 votes
1 answer

What is JUnit and what are the features of it?

Hey Irfaan, JUnit is an open source ...READ MORE

Jun 12, 2019 in Selenium by Anvi
• 14,150 points
11,956 views
0 votes
1 answer

How can I travel forward and back in a browser using selenium?

You can use the Navigate interface to ...READ MORE

Dec 31, 2018 in Selenium by Nabarupa
11,915 views
0 votes
1 answer

How to get details of a webpage like url, title name, domain name etc using Javascript Executor?

Hey Nitya, you can use executeScript() method ...READ MORE

Jul 23, 2019 in Selenium by Abha
• 28,140 points
11,840 views
0 votes
1 answer

How can I select date from a datepicker div using Selenium Webdriver?

Hey Jeevika, you can use following automation ...READ MORE

Jul 15, 2019 in Selenium by Abha
• 28,140 points
11,823 views
0 votes
1 answer

What's the difference between functions getClass() and getAttribute(“class”) in Selenium?

The simple difference is that, getClass() returns ...READ MORE

Apr 7, 2018 in Selenium by nsv999
• 5,500 points
11,804 views
0 votes
1 answer

How to start with a POST request using Selenium?

No, you cannot do this. But you ...READ MORE

Jun 25, 2018 in Selenium by Meci Matt
• 9,460 points
11,635 views
0 votes
2 answers

C# and Selenium: Wait Until Element is Present

WebDriverWait wait = new WebDriverWait(driver, new TimeSpan(0,0,5)) ...READ MORE

Sep 4, 2020 in Selenium by Sri
• 3,190 points
11,615 views
0 votes
1 answer

Setting up Chromeoptions and setExperimentalOption code

Here are the complete details: ChromeOptions options = ...READ MORE

Jul 23, 2018 in Selenium by Samarpit
• 5,910 points
11,604 views
0 votes
1 answer

How can I handle certificates when testing pages with Selenium?

In Firefox, you should set 'accept_untrusted_certs' of ...READ MORE

May 8, 2018 in Selenium by king_kenny
• 3,710 points
11,498 views
0 votes
3 answers

Clicking on an element in robot framework is not working in IE, but its working fine in Chrome & Firefox

public class SiblingAndParentInXpath { ...READ MORE

Apr 24, 2020 in Selenium by Blazzzinglight
11,488 views
0 votes
2 answers

Handling Combo-Box Drop downs in Selenium

Suggestion: Try to mimic the action with ...READ MORE

May 28, 2019 in Selenium by mary
11,449 views
+1 vote
1 answer

What are the different attributes for @Test annotation in testNG?

Hey @Iqbal, some of the most common ...READ MORE

Jun 25, 2019 in Selenium by Gulshan
11,385 views
0 votes
2 answers

What is following-sibling in selenium?

Xpath=//*[@type='text']//following::input[2] READ MORE

Sep 4, 2020 in Selenium by Sri
• 3,190 points
11,319 views
0 votes
2 answers

Need Selenium to wait until the document is ready.

use  (JavascriptExecutor) driver).executeScript("return docum ...READ MORE

Sep 4, 2020 in Selenium by Sri
• 3,190 points
11,281 views
0 votes
1 answer

How to measure page load time of a website using Selenium-Python?

Hello Damodar, following test script allows you ...READ MORE

Jul 22, 2019 in Selenium by Anvi
• 14,150 points
11,253 views
0 votes
1 answer

Can we perform zoom-in or zoom-out actions in a webpage using Python Selenium?

Hello Ruhi, to perform Zoom-in or Zoom-out ...READ MORE

Jul 29, 2019 in Selenium by Anvi
• 14,150 points
11,210 views
0 votes
1 answer

How can I click at the coordinates without identifying an element?

Of course, there is a way to do this. ...READ MORE

Jul 22, 2019 in Selenium by Surya
• 970 points
11,209 views
+2 votes
3 answers
0 votes
1 answer

How to select multiple options from a dropdown list using Actions class in Selenium?

Hey Renu, you can use Actions class ...READ MORE

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

How to get the TagName of a particular WebElement using Selenium Webdriver?

Hey Paula, to get the tagname of ...READ MORE

Jul 4, 2019 in Selenium by Abha
• 28,140 points
11,164 views
0 votes
1 answer

How can I select the drop down date section using selenium?

First thing that you need to do ...READ MORE

Dec 19, 2018 in Selenium by Nabarupa
11,162 views
0 votes
1 answer

InvalidSelectorException while using CSS Locator- contains() in Selenium WebDriver

The main problem with your code is ...READ MORE

Apr 17, 2018 in Selenium by Meci Matt
• 9,460 points
11,153 views
0 votes
1 answer

What is IWebElement and how it is used in Selenium C#?

Hello Paul, IWebElement is an Interface in ...READ MORE

Jun 11, 2019 in Selenium by Esha
11,117 views
0 votes
1 answer

Is there any way to get size (height and width) of a textbox using Selenium?

@Nick, you can use following lines of ...READ MORE

May 30, 2019 in Selenium by Raunak
11,072 views
0 votes
1 answer

How to do session handling in Selenium Webdriver?

Hey Lalita, you can perform following steps ...READ MORE

Jun 20, 2019 in Selenium by Subhash
11,041 views
0 votes
1 answer

Google Search Automation with Python Selenium.

You can simply automate pressing the "Enter" ...READ MORE

Aug 5, 2019 in Selenium by Payal
11,031 views
0 votes
1 answer

Finding xPath for an element with text

I think the problem is here: [contains(text()='Some text')] To ...READ MORE

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

How do we use assert() in Selenium WebDriver?

So, for implementing Assert(), you need to ...READ MORE

Apr 6, 2018 in Selenium by nsv999
• 5,500 points
10,860 views
0 votes
1 answer

Unable to send keys value inside my password field

Hey thanks for the input.. I found the ...READ MORE

Dec 19, 2018 in Selenium by Santhosh
10,841 views
0 votes
1 answer

How to loop through a menu list on a webpage using Selenium?

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

Aug 22, 2019 in Selenium by Anvi
• 14,150 points
10,821 views
0 votes
1 answer

org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document

Hi AK, to resolve this type of error, ...READ MORE

Sep 9, 2019 in Selenium by Abha
• 28,140 points
10,815 views
0 votes
1 answer

Browser is Unreachable exception while trying to test with Selenium Webdriver using IEDriver

I was getting the same error and ...READ MORE

Mar 30, 2018 in Selenium by nsv999
• 5,500 points
10,778 views
0 votes
1 answer

Locating child nodes in selenium WebDriver

In this situation you can try doing ...READ MORE

May 24, 2018 in Selenium by Meci Matt
• 9,460 points
10,706 views
+1 vote
2 answers

how to display all items in the list in the drop down?

Try using following code:  WebElement dropdown = ...READ MORE

Sep 30, 2019 in Selenium by Anvi
• 14,150 points
10,687 views
0 votes
1 answer

How to stop test execution in Selenium if an error occured?

Hey Fatima, if you are using any ...READ MORE

Jul 4, 2019 in Selenium by Abha
• 28,140 points
10,650 views
0 votes
1 answer

What are the drawbacks of using thread.sleep() command in Selenium Webdriver?

Hey Eric, some of the drawbacks of ...READ MORE

Jul 5, 2019 in Selenium by Abha
• 28,140 points
10,570 views
+1 vote
1 answer

Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.

This issue generally happens due to incompatibility ...READ MORE

Jun 1, 2018 in Selenium by bits1
• 120 points
10,529 views
0 votes
1 answer

How to capture the text from Alert Message in Selenium Webdriver?

Hello @Farhan, you can use getText() method ...READ MORE

Jul 3, 2019 in Selenium by Anvi
• 14,150 points
10,515 views
0 votes
1 answer

How to Select date from a datepicker with Selenium Webdriver using Python?

Hi Yashim, you can select date from ...READ MORE

Jul 31, 2019 in Selenium by Abha
• 28,140 points

edited Oct 7, 2021 by Sarfaraz 10,512 views
0 votes
1 answer

Select a drop down value of angular js application using selenium using text

To select drop down use following, driver.findElements(By.className("Your dropdown ...READ MORE

Jun 18, 2018 in Selenium by Samarpit
• 5,910 points
10,470 views
0 votes
2 answers

How to open a new tab in existing browser window using Javascript Executor?

Hi Meenal, you can use executeScript() method ...READ MORE

Jul 22, 2019 in Selenium by Abha
• 28,140 points

edited Oct 7, 2021 by Sarfaraz 10,455 views
0 votes
2 answers

What is the best way to handle a Javascript popup using Selenium Webdriver?

webDriver.switchTo().alert() it inbuild selenium only //Store the alert ...READ MORE

Sep 3, 2020 in Selenium by Sri
• 3,190 points
10,395 views
0 votes
1 answer

What is the difference between WebDriver and RemoteWebdriver in Selenium?

Hey Ishan, the difference between Webdriver and ...READ MORE

May 10, 2019 in Selenium by Pratibha
• 3,690 points
10,341 views
0 votes
1 answer

Selenium WebDriver and browsers select file dialog

If you are trying to select a ...READ MORE

Sep 3, 2018 in Selenium by Meci Matt
• 9,460 points
10,329 views
0 votes
1 answer

How do i click on <input type=file> on any browser if i'm testing with Selenium Webdriver?

Does not matter which OS or which ...READ MORE

Apr 29, 2018 in Selenium by king_kenny
• 3,710 points
10,321 views