Trending questions in Selenium

0 votes
1 answer

what is selenium webdriver?

Selenium WebDriver is a collection of open-source ...READ MORE

Feb 3, 2022 in Selenium by Edureka
• 850 points
728 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,715 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,449 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
53,431 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
40,130 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,662 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,537 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
13,335 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,189 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
691 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
451 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
41,287 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,501 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
35,440 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
42,133 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
10,249 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 33,075 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
36,550 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,495 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
907 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,795 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,904 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,842 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
30,211 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,891 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
40,096 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
38,180 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,371 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
13,087 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
29,411 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,932 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,615 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,770 points
6,723 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,740 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,770 points
5,366 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
7,106 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,760 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,675 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,385 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,743 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,437 views
0 votes
1 answer
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
29,297 views
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,652 views
0 votes
4 answers

Throwing error - org.openqa.selenium.SessionNotCreatedException: session not created exception

Updating the chrome driver and chrome browser ...READ MORE

Apr 12, 2020 in Selenium by Vamsi
25,391 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,781 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,259 views