Most viewed questions in Selenium

0 votes
1 answer

I want to create a Custom ExpectedCondition to test a specific condition in Selenium. is it possible to achieve the same?

Hey @Revathy, yes it is possible to ...READ MORE

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

How to use FireFoxDriver using Selenium 3.4.0 using Maven?

Your using the wrong functions to set ...READ MORE

Apr 6, 2018 in Selenium by nsv999
• 5,500 points
4,593 views
0 votes
2 answers
0 votes
1 answer

How to access a html page using selenium?

You will use driver.get() and instead of ...READ MORE

Jan 14, 2019 in Selenium by Pranjali
4,579 views
0 votes
1 answer

How MaxSessions are different from MaxInstances properties of Selenium Grid?

Hello Palak, MaxInstances is the no. of browser ...READ MORE

Jun 24, 2019 in Selenium by Anvi
• 14,150 points
4,572 views
0 votes
1 answer

Install Selenium in a conda environment

Conda uses different channels to search for ...READ MORE

Apr 20, 2018 in Selenium by Vardy
• 2,360 points
4,568 views
+1 vote
1 answer

Can I select multiple options from a dropdown using Python Selenium webdriver?

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

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

How do I close a focused window using Selenium WebDriver in Java?

You can use this    String base = ...READ MORE

May 10, 2019 in Selenium by Vaishnavi
• 1,180 points
4,513 views
0 votes
2 answers

How to use relative xpath for locating a web-element by particular Attribute?

Xpath=//tagname[@attribute='value'] READ MORE

Sep 3, 2020 in Selenium by Sri
• 3,190 points
4,503 views
+1 vote
1 answer

download all pdf file with selenium python

Try this code, it worked for me. options ...READ MORE

Sep 14, 2020 in Selenium by Karan
• 19,610 points
4,500 views
0 votes
1 answer

How to Submit HTTP authentication with Selenium python-binding webdriver

I have found a solution to this ...READ MORE

Sep 25, 2018 in Selenium by Meci Matt
• 9,460 points
4,496 views
0 votes
1 answer

How to Click a Link by href value in Selenium WebDriver?

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

Aug 14, 2019 in Selenium by Abha
• 28,140 points
4,495 views
0 votes
1 answer

Not able to find element with Xpath

You are using wrong xpath expression. This ...READ MORE

Jul 4, 2018 in Selenium by Samarpit
• 5,910 points
4,491 views
0 votes
1 answer

Please help me with automation script for testing Carousel Rotation with Selenium Webdriver.

Hey Hussain, you can use following lines ...READ MORE

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

edited Jul 19, 2023 by Khan Sarfaraz 4,478 views
0 votes
0 answers
0 votes
1 answer

How to get the select options using Selenium WebDriver in Java

Hey there! You should be able to get ...READ MORE

Jun 14, 2019 in Selenium by Surya
• 970 points
4,465 views
0 votes
1 answer

What are the phases of Selenium Life Cycle?

Selenium life cycle has following 5 phases: Test ...READ MORE

May 10, 2019 in Selenium by Prashant
4,458 views
0 votes
1 answer

Selenium WebDriver Real Time Projects

You should start with basics projects website ...READ MORE

Apr 30, 2018 in Selenium by Samarpit
• 5,910 points
4,432 views
0 votes
1 answer

Selenium JARS(Java) missing from downloadable link

Nothing to worry about here. In the ...READ MORE

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

edited Aug 4, 2023 by Khan Sarfaraz 4,414 views
0 votes
1 answer

How to save the content on the page (full page) using Selenium WebDriver?

Selenium isn't designed to do this, you ...READ MORE

Jun 28, 2019 in Selenium by Vaishnavi
• 1,180 points
4,394 views
0 votes
1 answer

I'm getting an error in my seleium chrome tests:- Chrome failed to start: exited abnormally

I've faced this issue before when working ...READ MORE

May 7, 2018 in Selenium by king_kenny
• 3,710 points
4,391 views
0 votes
3 answers

Scripting Languages used with Selenium tool for Automation Testing

The biggest advantage of Selenium is that ...READ MORE

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

How can I capture full webpage screenshot using Selenium Webdriver?

Hey Harbhajan, you can use Ashot() to ...READ MORE

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

Java.lang.CharSequence cannot be resolved error while using sendKeys() using Selenium Webdriver

You could try this, myElement .sendKeys(new String[] { ...READ MORE

Apr 4, 2018 in Selenium by Johnathon
• 9,090 points
4,359 views
0 votes
1 answer

How can we create a new Firefox profile for Selenium WebDriver?

Okay so first of all, in the ...READ MORE

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

How can I select a particular node within the XPath node sets by index?

There is no concept of 'i' in ...READ MORE

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

Radio button using Selenium WebDriver

You can try following code snippet: WebElement elem ...READ MORE

Aug 28, 2019 in Selenium by Abha
• 28,140 points
4,339 views
+1 vote
1 answer

Is there any way of verifying the error message shown on a page using python selenium?

Hi Jasmine, you can verify an error ...READ MORE

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

Click a link within an iFrame which opens a new tab and switch to it

While switching the TAB induce WebDriverWait and switch accordingly. Below code ...READ MORE

Jun 7, 2018 in Selenium by Samarpit
• 5,910 points
4,332 views
0 votes
1 answer

How can I select an option from a dropdown using Ruby Selenium Webdriver?

Hey Swasti, you can try following lines ...READ MORE

Aug 26, 2019 in Selenium by Anvi
• 14,150 points
4,328 views
+2 votes
1 answer

How to press enter using selenium in Java?

Hey @jino, good that you are finding ...READ MORE

Dec 21, 2018 in Selenium by Priyaj
• 58,090 points

edited Oct 7, 2021 by Sarfaraz 4,304 views
0 votes
1 answer

Screenshot with Selenium WebDriver

Try the below code: import java.io.File; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import ...READ MORE

Jul 13, 2018 in Selenium by Samarpit
• 5,910 points
4,304 views
+1 vote
1 answer

Selenium wont support angular , react ,Vue JS applications...?

You can use selenium to test any ...READ MORE

Aug 28, 2020 in Selenium by Venkat Ram
4,283 views
0 votes
1 answer

How to get the number of frames on a webpage using webdriver?

Hi Esha, you can get the number ...READ MORE

May 28, 2019 in Selenium by Rajesh
4,280 views
0 votes
1 answer

What are the benefits of using Junit testing framework?

Hi Prakhar, some of the benefits of ...READ MORE

Jun 12, 2019 in Selenium by Abha
• 28,140 points
4,265 views
0 votes
1 answer

Error: NotAValidDirectory:: The directory name is invalid: 'C:\\Users\\Kartik\\geckodriver.exe'

Hey Kartik, Firefox requires gecko driver to ...READ MORE

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

How to write regular expression In testng.xml file to search for specific keyword.

Hi Joginder, you can write regular expression ...READ MORE

Jun 19, 2019 in Selenium by Anvi
• 14,150 points
4,227 views
0 votes
1 answer

How to close tab in WebDriver or Protractor

Switch to the newly opened tab. Close ...READ MORE

Aug 16, 2018 in Selenium by Meci Matt
• 9,460 points
4,222 views
0 votes
1 answer

Wait until page loads before click() using Selenium Webdriver

Change the following guestlogin_button = wait.until(EC.visibility_of_element_located((By.id, ".ch4_loginGuestBtn"))) to guestlogin_button = ...READ MORE

Aug 8, 2018 in Selenium by Samarpit
• 5,910 points
4,220 views
0 votes
1 answer

Headless gecko driver using Selenium

Try the below steps. It works for ...READ MORE

Jul 13, 2018 in Selenium by Samarpit
• 5,910 points
4,209 views
0 votes
1 answer

Handling calendar popup using Selenium WebDriver

You are selecting wrongly your elements in ...READ MORE

Apr 17, 2018 in Selenium by Shubham
• 13,490 points
4,196 views
0 votes
1 answer

Is it possible to use webdriverwait for checking the visiblity of an element in webdriver?

Hello Jagdeep, Yes it is possible to ...READ MORE

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

How to check the state of a radio button or checkbox in Selenium?

Hey Priya, to check the state of ...READ MORE

May 7, 2019 in Selenium by Pratibha
• 3,690 points
4,181 views
0 votes
1 answer

What are the limitations of using JUnit?

Hey Sumit, JUnit is a very good ...READ MORE

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

Which is preferred more in Selenium Absolute or Relative XPath

Absolute XPath is the direct way to ...READ MORE

Apr 20, 2018 in Selenium by Meci Matt
• 9,460 points
4,178 views
0 votes
1 answer

Handle multiple tabs in a browser using selenium

Selenium has driver.getWindowHandles() and driver.switchTo().window("{windowHandleName}") commands to work with ...READ MORE

Jan 22, 2019 in Selenium by tanisha
4,165 views
0 votes
1 answer

Which webdriver implimentation is fastest in Selenium Webdriver and why?

Hi Isaac, HTMLUnit Driver implementation is fastest, as ...READ MORE

May 29, 2019 in Selenium by Abha
• 28,140 points
4,159 views
0 votes
1 answer

How to handle IE protected mode zone and zoom level setting in selenium C#

For changing the zoom level you can ...READ MORE

Feb 13, 2019 in Selenium by Priyaj
• 58,090 points
4,154 views
0 votes
1 answer
0 votes
1 answer

Selenium Error: Runtime.executionContextCreated has invalid 'context':

Degrade your chrome driver version from 2.9 ...READ MORE

Jun 28, 2018 in Selenium by Samarpit
• 5,910 points
4,138 views