Trending questions in Selenium

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
34,878 views
0 votes
0 answers

Recieving this error for mac for test ng"The method chrome() is undefined for the type DesiredCapabilities "

I am trying to create a testng ...READ MORE

Sep 14, 2021 in Selenium by Geethu

edited Mar 4, 2025 624 views
0 votes
0 answers

I used Actions method to locate the element in selenium .But Im getting Java null pointer exception.

WebElement Elmnt = driver.findElement(By.id("my-id")); Actions actions = new ...READ MORE

Sep 10, 2021 in Selenium by Jayashree

edited Mar 4, 2025 565 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
12,367 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
22,025 views
0 votes
3 answers

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

*** Test Cases *** Login Open Browser ...READ MORE

Mar 10, 2023 in Selenium by Chandra Kumar

edited Mar 5, 2025 15,226 views
0 votes
0 answers

Unable to select the dropdown list

In the dropdown list, the Edition element ...READ MORE

Aug 19, 2021 in Selenium by Edureka

edited Mar 4, 2025 581 views
0 votes
0 answers

Chrome - How to select a specific PKI certificate based on profile?

How to select a specific PKI certificate ...READ MORE

Aug 14, 2021 in Selenium by Dave

edited Mar 4, 2025 701 views
0 votes
0 answers

Chrome - How to select a specific PKI certificate based on profile?

How to select a specific PKI certificate ...READ MORE

Aug 14, 2021 in Selenium by Dave

edited Mar 4, 2025 675 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 34,319 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
35,087 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
14,624 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
42,239 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
35,454 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
1,998 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
17,333 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
27,348 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
32,420 views
0 votes
0 answers

How to enable 'preserve logs' in chrome(remote browser) using selenium ?

I have tried to enable 'preserve logs' ...READ MORE

Jun 24, 2021 in Selenium by anonymous

edited Mar 4, 2025 644 views
0 votes
0 answers

Is it possible to scrape website using anti-bot?

Hi, I am using python-selenium to scrape ...READ MORE

Jun 17, 2021 in Selenium by Dharmendra

edited Mar 4, 2025 560 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
30,786 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
39,313 views
0 votes
0 answers

What’s the difference between SelectorsHub and chropath in selenium?

What’s the difference between SelectorsHub and chropath ...READ MORE

Jun 10, 2021 in Selenium by anonymous

edited Mar 4, 2025 603 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,730 points
8,861 views
0 votes
0 answers

How do I use the SelectorsHub debugger feature to inspect dynamic elements?

How do I use the SelectorsHub debugger ...READ MORE

Jun 3, 2021 in Selenium by Edureka

edited Mar 4, 2025 630 views
0 votes
0 answers

How can I use Selectorshub with selenium to generate and write xpath?

How can I use Selectorshub with selenium ...READ MORE

Jun 3, 2021 in Selenium by Ram

edited Mar 4, 2025 587 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
29,137 views
+1 vote
1 answer

python selenium error: element is not attached to the page document

Add more sleep time where code breaks. ...READ MORE

Feb 26, 2021 in Selenium by Hamza

edited Mar 5, 2025 11,531 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
32,431 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
30,136 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,550 points
8,814 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
31,358 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
20,674 views
0 votes
0 answers

In what cases we have to choose data driven and keyword driven frame work how can we find that?

How can we define that for this ...READ MORE

Apr 30, 2021 in Selenium by mohanapalani15

edited Mar 4, 2025 544 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
18,575 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
40,326 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
30,852 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,730 points
6,578 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,550 points
8,257 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
18,948 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,190 points
11,727 views
0 votes
1 answer
+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
30,475 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
19,264 views
0 votes
1 answer

What is Xpath and what are the types of it in Selenium Webdriver?

Xpath is one of the most important ...READ MORE

May 23, 2022 in Selenium by anonymous

edited Mar 5, 2025 6,746 views
+2 votes
1 answer

I want the console.log output from Chrome. I'm working with selenium on Python

So this is how you do it ...READ MORE

May 3, 2018 in Selenium by sniffy_god
• 780 points
46,518 views
+1 vote
1 answer

How to automate instagram login page using java in selenium?

Try the following: package com.company; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import ...READ MORE

Sep 15, 2020 in Selenium by Karan
• 19,550 points
9,132 views