Trending questions in Selenium

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
40,649 views
+1 vote
1 answer

getting error in testng java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableMap

A NoClassDefFoundError is thrown when the JRE can't find ...READ MORE

Jun 4, 2020 in Selenium by Ramesh
• 140 points
28,166 views
+1 vote
1 answer

Avoid bot detection not working with Selenium

Looks like the website is protected by Bot Management service ...READ MORE

Jul 28, 2020 in Selenium by Kim
23,115 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
52,522 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
39,573 views
0 votes
1 answer

How do you automatically download a Pdf with Selenium Webdriver in Python.

Try this code, from selenium import webdriver download_dir = ...READ MORE

Mar 5, 2020 in Selenium by Sirajul
• 59,230 points
27,374 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
34,084 views
0 votes
0 answers

How to check whether web element is enabled or Disabled without using isEnabled method?

Sep 29, 2021 in Selenium by anonymous
• 140 points
1,054 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,773 views
0 votes
0 answers

Iam unable to run the java program in eclipse

Iam getting the below error. at org.eclipse.jdt.debug.ui.launchConfigurations.JavaApplicationLaunchShortcut.findTypes(JavaApplicationLaunchShortcut.java:165) at org.eclipse.jdt.debug.ui.launchConfigurations.JavaLaunchShortcut.searchAndLaunch(JavaLaunchShortcut.java:115) at ...READ MORE

Oct 9, 2021 in Selenium by Srikanth
• 120 points
605 views
0 votes
0 answers

How to separate integer(230001) into 230 &001 and compare 230 with hardcoded integer.

I have a ID field and want ...READ MORE

Oct 11, 2021 in Selenium by Usama
• 120 points
376 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,810 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
34,079 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
34,880 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
41,484 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,774 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,801 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
35,920 views
+1 vote
2 answers

How to get page source as it is in browser using selenium.

I needed to wait for an element ...READ MORE

Apr 18, 2020 in Selenium by laiman
• 330 points
19,197 views
0 votes
1 answer

why it is calling as a regresssion is there any reason

The idea is to run this series ...READ MORE

Nov 23, 2021 in Selenium by anonymous
822 views
0 votes
0 answers

Getting Java Null Pointer Exception on running the test case in Seleniumn.Can someone pls let me know where i need to fix in order to progress

Below is the Error: java.lang.RuntimeException: java.lang.NullPointerException at org.testng.internal.MethodInvocationHelper.invokeMethodNoCheckedException(MethodInvocationHelper.java:49) at org.testng.internal.MethodInvocationHelper.invokeDataProvider(MethodInvocationHelper.java:131) at ...READ MORE

Sep 11, 2020 in Selenium by sandhya
• 180 points
12,599 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,629 views
0 votes
2 answers

How to get the text from a website using selenium?

driver.findElement(By.cssSelector("p")).getText() or  IWebElement element = Browser.GetElementByCssSelector("div.loginbox p"); string text = ...READ MORE

Sep 6, 2020 in Selenium by Sri
• 3,190 points
25,538 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,866 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
32,376 views
0 votes
3 answers

Click Allow on Show Notifications popup using Selenium Webdriver

Try this: Robot robot = new Robot(); robot.delay(5000); robot.keyPress(KeyEvent.VK_TAB); robot.keyPress(KeyEvent.VK_ENTER); hope this ...READ MORE

Mar 1, 2020 in Selenium by anuj
29,760 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,932 views
0 votes
1 answer

What are the differences between POM and PageFactory in Selenium Webdriver?

Hi Raveena, Page Object Model (POM) and ...READ MORE

Jul 17, 2019 in Selenium by Anvi
• 14,150 points
29,013 views
0 votes
0 answers

org.openqa.selenium.ElementClickInterceptedException Selenium WebDriver Java

Hello, My execution does clicks on webelement as ...READ MORE

Jul 21, 2020 in Selenium by sainiranjan
• 120 points
12,922 views
0 votes
1 answer

How to run multiple test cases using TestNG Test Suite in Selenium?

Hi Neerja, to run multiple test cases ...READ MORE

May 22, 2019 in Selenium by Abha
• 28,140 points
30,679 views
+2 votes
3 answers

How can we handle authentication popup in Selenium WebDriver using Java

1) By passing user credentials in URL. String ...READ MORE

Aug 31, 2020 in Selenium by Sri
• 3,190 points
28,938 views
0 votes
2 answers

Couldn't sign to Chrome with selenium

Yes. I have spent my whole day ...READ MORE

Aug 25, 2020 in Selenium by anonymous
13,113 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,890 points
6,321 views
+1 vote
2 answers

Is it possible to manually set the attribute value of a Web Element using Selenium?

WebDriver driver; JavascriptExecutor js = (JavascriptExecutor) driver; js.executeScript("document.getElementById('id123').setAttribute('attr', ...READ MORE

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

How to switch tabs using Selenium WebDriver with Java?

psdbComponent.clickDocumentLink(); ArrayList<String> tabs2 = ...READ MORE

Dec 3, 2020 in Selenium by Gitika
• 65,890 points
5,139 views
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,557 views
0 votes
1 answer

When i give WebDriver driver=new ChromeDriver();

If you use ChromeDriver driver = new ChromeDriver(); the ChromeDriver instance ...READ MORE

Oct 23, 2020 in Selenium by Karan
• 19,610 points
6,803 views
0 votes
1 answer

Select item from sub-menu of a menu using mouse over action in selenium

import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.interactions.Actions; public ...READ MORE

May 22, 2019 in Selenium by Anvi
• 14,150 points
29,142 views
0 votes
2 answers

How to submit a form in Selenium webdriver if submit button can't be identified?

In addition to flat out submitting the ...READ MORE

Jul 31, 2020 in Selenium by anonymous
18,424 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
6,155 views
0 votes
2 answers

How to get all options of a dropdown using python selenium webdriver?

WebElement element = driver.findElement(By.id("")); Select select = new ...READ MORE

Sep 6, 2020 in Selenium by Sri
• 3,190 points
17,095 views
0 votes
1 answer
0 votes
2 answers

How to avoid the pop-up window in chrome browser with Selenium?

Alert alertCancel = driver.switchTo().alert(); READ MORE

Sep 6, 2020 in Selenium by Sri
• 3,190 points
16,423 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
38,056 views
+3 votes
1 answer

How to get the attribute value of a web element in Selenium (using Java or Python)?

Hello @Umesh, if you want to get ...READ MORE

May 16, 2019 in Selenium by David
28,714 views
0 votes
2 answers

How to verify color of a web element in Selenium Webdriver?

document.getElementsByTagName('div')[0].style.backgroundColor READ MORE

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

Getting runtime.cucumberexception for error parsing feature file

First check if there is any extra ...READ MORE

May 17, 2019 in Selenium by Frankie
• 9,830 points
28,709 views