Most viewed questions in Selenium

0 votes
2 answers

Selenium: Diff between POM (page object model) and page factory?

Hi, In POM (Page Object Model) you create ...READ MORE

Mar 14, 2019 in Selenium by Ellen Dares
6,181 views
0 votes
1 answer

Diff between WebDriver listeners and TestNG listeners?

This is not a very important concept ...READ MORE

Apr 14, 2018 in Selenium by king_kenny
• 3,710 points
6,141 views
0 votes
1 answer

How to open a new window on a browser using Selenium WebDriver for python?

You can try the below code: driver = ...READ MORE

Aug 23, 2018 in Selenium by Meci Matt
• 9,460 points
6,137 views
0 votes
1 answer

How to get status code by using selenium.py (python code)

Unfortunately, Selenium does not provide this information ...READ MORE

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

Closing all opened tabs except the first main tab using web-driver

Get all the window handles then iterate ...READ MORE

Aug 31, 2018 in Selenium by Meci Matt
• 9,460 points
6,097 views
0 votes
1 answer

How can I fetch value/text from a textbox by using Python Selenium Webdriver?

Hey Jagat, following test script shows how ...READ MORE

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

What is the use of deSelectAll() method in Selenium Webdriver?

Hello Inderjeet, deselectAll() method is useful to ...READ MORE

May 31, 2019 in Selenium by Yogesh
6,014 views
0 votes
1 answer

Installing Selenium WebDriver on Mac OS

For Installing if you use homebrew , you can ...READ MORE

Apr 17, 2018 in Selenium by Vardy
• 2,360 points
6,010 views
0 votes
1 answer

Downloading *.jar file from http:// seleniumhq.org using Selenium WebDriver

For Selenium Standalone Server: profile.setPreference("browser.helperApps.neverAsk.saveToDisk", "application/java-archive"); If downloading ...READ MORE

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

Getting current page url with selenium

If you are having issues with .get(), then ...READ MORE

Aug 9, 2018 in Selenium by Samarpit
• 5,910 points
5,962 views
0 votes
1 answer

How can I find broken or invalid images on a webpage using Webdriver?

Hey @Lucy, to find the broken or ...READ MORE

Jul 3, 2019 in Selenium by Junaid
5,929 views
0 votes
1 answer

How do i change the location where my file gets downloaded in Selenium Webdriver and firefox driver?

There are a couple of errors there. ...READ MORE

Apr 13, 2018 in Selenium by nsv999
• 5,500 points
5,890 views
0 votes
1 answer

Is it possible for a website to detect that we are using Selenium with ChromeDriver

Selenium tests for pre-defined javascript variables which ...READ MORE

Apr 28, 2018 in Selenium by Meci Matt
• 9,460 points
5,881 views
0 votes
1 answer

How to add Junit library in Eclipse to use with Selenium Webdriver?

Hi Jacky, to add JUnit library in ...READ MORE

Jun 12, 2019 in Selenium by Anvi
• 14,150 points
5,878 views
0 votes
2 answers

Handling untrusted SSL certificates in different browsers using Selenium?

Hi Ishita, you can handle untrusted SSL ...READ MORE

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

How can I search for a video on YouTube?

I will tell you step by step ...READ MORE

Dec 20, 2018 in Selenium by Nabrupa
5,834 views
0 votes
1 answer

How to set Page Load Timeout using C# and Selenium Webdriver

Check this out C# WebDriver API now contains ...READ MORE

Aug 3, 2018 in Selenium by Samarpit
• 5,910 points
5,814 views
0 votes
1 answer

Getting error NoClassDeffound error while exceuting selenium script(created with maven) , please help me to resolve this

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableMap at org.openqa.selenium.remote.service.DriverService$Builder.<init>(DriverService.java:259) at ...READ MORE

Apr 20, 2020 in Selenium by celine
5,803 views
0 votes
1 answer

How do I find an element that contains specific text in Selenium WebDriver (Python)?

Try the following: driver.find_elements_by_xpath("//*[contains(text(), 'My Button')]") I hope this ...READ MORE

Nov 27, 2020 in Selenium by Gitika
• 65,910 points
5,800 views
0 votes
1 answer

Automate a purchase by adding a book to the cart in flipkart using Selenium

Hello Junaid, this code snippet would help you ...READ MORE

May 22, 2019 in Selenium by Abha
• 28,140 points
5,775 views
0 votes
1 answer

Error with Selenium File Upload

In your code, you have used "WebElement" ...READ MORE

Mar 30, 2018 in Selenium by nsv999
• 5,500 points
5,763 views
0 votes
2 answers

How to scroll a Web Page using coordinates of a WebElement in Selenium WebDriver ?

JavascriptExecutor js = (JavascriptExecutor) driver; js.executeScript("window.scrollBy("X", " y ...READ MORE

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

How to automate the Instagram search bar with selenium

Hi, please don't search by any placeholder ...READ MORE

Mar 9, 2019 in Selenium by Surya
• 970 points
5,679 views
0 votes
1 answer

“selenium java” jar file vs. “Selenium server standalone” jar file

Explanation below. Also, there is a similar ...READ MORE

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

How to switch the access from the main window to the popup window using Selenium?

Generally, the Modular Windows are part of ...READ MORE

May 28, 2019 in Selenium by Vaishnavi
• 1,180 points
5,629 views
0 votes
1 answer

How can I add Cucumber Jar files in Eclipse to use with Selenium Webdriver?

Hey Eshan, follow these steps to add ...READ MORE

May 23, 2019 in Selenium by Abha
• 28,140 points
5,603 views
0 votes
1 answer

Page Object Model(POM) and Keyword driven FrameWork in Selenium

Okay, first of all, page object model ...READ MORE

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

Chrome selenium driver - how to detach / leave the browser open after the get test is completed?

Hey Stephan, I had the similar issue ...READ MORE

Nov 4, 2019 in Selenium by Abha
• 28,140 points
5,577 views
0 votes
1 answer

How to disable infobar in Chrome browser in Selenium Webdriver?

Hi Lerry, you can disable Infobars displayed ...READ MORE

Jun 4, 2019 in Selenium by Hardeep
5,548 views
0 votes
1 answer

Confused betwen Java AWT Robot & Selenium Actions

There are plenty of differences between the ...READ MORE

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

Suddenly my whole program will not run. It shows main error" Missing Type String"

It needs to upgrade the Compiler Compliance.  For ...READ MORE

Oct 29, 2020 in Selenium by Karan
• 19,610 points
5,537 views
0 votes
1 answer

How to press Escape key on keyboard using different robot class methods?

Hey Ruby, you can press Escape key ...READ MORE

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

How to navigate to a web URL using IE driver in Python Selenium?

Hello Neelam, to navigate to a web ...READ MORE

May 16, 2019 in Selenium by Pratibha
• 3,690 points
5,501 views
0 votes
1 answer

Selecting an item from dropdown list using Selenium WebDriver & java

Use the below code: new Select(driver.findElement(By.id("blood-group"))).selectByVisibleText("AB"); You also need ...READ MORE

May 8, 2018 in Selenium by Meci Matt
• 9,460 points
5,497 views
0 votes
1 answer

Make sure that browser opened by webdriver is always in focus

The following should work: ((JavascriptExecutor) webDriver).execut ...READ MORE

Sep 24, 2018 in Selenium by Meci Matt
• 9,460 points
5,457 views
0 votes
1 answer

Unable to pass Capabilities to ChromeDriver in Selenium Webdriver. How to resolve the issue?

Hey Inaya, you are facing this problem ...READ MORE

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

Need to perform parallel execution (multiple browser sessions) with Selenium & TestNG by using @BeforeSuite

@Beforesuite annotated method runs before the testNG.XML ...READ MORE

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

Counting the list within HTML structure using Selenium Webdriver

Try Below code: This should work driver.findElements(By.xpath(" ...READ MORE

Jul 3, 2018 in Selenium by Samarpit
• 5,910 points
5,444 views
+1 vote
1 answer
0 votes
1 answer

What is Object Repository in Selenium WebDriver?

@Tanmay, Object Repository is used to store ...READ MORE

Jun 4, 2019 in Selenium by Wasim
5,413 views
0 votes
1 answer

Read a dynamic value using Selenium

You can use the following line of ...READ MORE

Aug 2, 2018 in Selenium by Samarpit
• 5,910 points
5,412 views
+1 vote
1 answer

How to click the gender radio button in facebook using Selenium?

I used xpath for loacting the male ...READ MORE

Dec 19, 2018 in Selenium by Nabarupa
5,403 views
+1 vote
1 answer

selenium-python Downloading file Error -- "Failed -Download Error"

The path you declared for the default ...READ MORE

Sep 7, 2020 in Selenium by Sirajul
• 59,230 points
5,402 views
0 votes
1 answer

How can I get meta-description of a webpage using Selenium Webdriver?

Hey Sonal, to get the meta-description of ...READ MORE

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

Error: TestNG @BeforeClass initialization code not running before Test

Below will help: @BeforeTest: The annotated method will ...READ MORE

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

Verify that an element exist in Selenium 2 or not

If you are testing using JUnit and ...READ MORE

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

How to handle chrome notification in selenium?

Map<String, Object> prefs = new HashMap<String, Object>(); prefs.put("profile.default_content_setting_values.notifications", ...READ MORE

May 4, 2020 in Selenium by Mukti
• 140 points
5,319 views
0 votes
1 answer

Is there a way to run only few test cases at a time in testNG class?

Hello @sradha, yes there are many ways ...READ MORE

Dec 27, 2018 in Selenium by Rashmi
5,302 views
0 votes
1 answer

Getting error saying element not found in selenium

Hey @Jino, The things I figured out ...READ MORE

Dec 21, 2018 in Selenium by Shuvodip
5,272 views
0 votes
1 answer

How to open a browser windows silently in the background?

It is a little bit of a ...READ MORE

Apr 20, 2018 in Selenium by king_kenny
• 3,710 points
5,266 views