Questions tagged [selenium-webdriver]

Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.

Filter by
Sorted by
Tagged with
8
votes
6answers
41k views

How to minimize the browser window which was launched via Selenium Webdriver?

How can I minimize the browser window which has been launched via Selenium Webdriver? I see that there is a method to maximize (documentation), but I cannot find the converse for minimize. I have ...
-2
votes
3answers
3k views

How to resolve 'ClassNotFoundException' error in Selenium?

Error: java.lang.ClassNotFoundException Eclipse Error: While executing my code, getting above error, can anyone please help me on this?
9
votes
8answers
5k views

Visual Regression Testing

For testing the visual appearance of a website the use of tools like selenium (functional surface test) is not sufficient because it doesn´t check the visual appearance and/or the CSS-Code directly. ...
0
votes
2answers
76 views

What is the correct way to writing e2e tests?

I have a task do create e2e for a web app, but I don't know what is the correct way to do it. For example: In app there is a possibility to add new employee, so the scenario is: Login to application(...
0
votes
0answers
82 views

Not able to Click on the Drop down and wait for element also fail for drop down ID in IFrame with JavaScript

I am unable to click on this dropdown. I tried selecting the dropdown and javascript click and normal click. Waiting for this element to be present also fails. Please provide the solution for the ...
0
votes
0answers
264 views

Junit Report Generate

I am using Eclipse Kepler for the generation of test cases using JUnit. I have tried the follow through this link https://earlwillis.wordpress.com/2012/01/31/getting-started-with-junit-reports/ But ...
0
votes
0answers
185 views

NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. I am getting this error while I try to run the project using webdriver. Using the ...
0
votes
1answer
372 views

Trying to login to Gmail with Selinum but “This browser or app may not be secure”

After a lot of Google searching, I got my python script to login with Selenium, but now the page is telling me that: This browser or app may not be secure. Learn more Try using a different browser. ...
0
votes
0answers
18 views

Not able to click anchor in iFrame using Selenium

Anchor tag <a> which is in the iFrame is not getting selected for clicking. Its throwing no such element exception. driver.SwitchTo().frame(driver.FindElement(By.Name("iframe")); driver....
-1
votes
1answer
28 views

How to store text from a webpage using Ruby?

Ruby / automation beginner here - I'm trying to get and store an email address from a webpage using the element id, but am getting the error undefined local variable or method 'customer_email_address' ...
4
votes
0answers
93 views

Tagging selenium nodes and requesting nodes without that tag

Notes: This is cross-posted on SO - https://stackoverflow.com/questions/48169961/tagging-selenium-nodes-and-requesting-nodes-without-that-tag We have an internal selenium grid that currently has 20 ...
0
votes
1answer
20 views

How to create a property file in python?

In java we have .property file to have all our locators, how to have and use a same kind of file in python?
0
votes
1answer
35 views

InvalidArgumentException: Message: invalid argument: 'using' must be a string

im very new to python, trying to create reusable code. when i try to call the class Login and function login_user in test_main.py by passing all the arguments that were used under Login class, im ...
3
votes
8answers
7k views

Capturing screen shots in selenium tests

How do you use screen shot capture in selenium tests? If anyone is using, how effective do you find it ?
0
votes
0answers
27 views

Getting org.openqa.selenium.ElementNotInteractableException: element not interactable for Editor in selenium in Java [duplicate]

I have a Text Editor where I want to perform Sendkeys() but getting 'element not interactable' error. I'm able to get the text of that element by getText(). No idea how to work with this editor. ...
1
vote
1answer
32 views

Timed out message receiving from renderer: 0.100 log messages using ChromeDriver and Chrome v80 through Selenium Java

I recently updated my chrome from v74 to v80. Now I am facing timeout messaging rending when I run my script which was running successfully on v74. My code : public static void main(String[] args) ...
0
votes
2answers
13k views

org.testng.TestNGException: Cannot find class in classpath: com.facebook.qa.testcases.LoginPageTest [closed]

[RemoteTestNG] detected TestNG version 6.14.2 org.testng.TestNGException: Cannot find class in classpath: com.facebook.qa.testcases.LoginPageTest at org.testng.xml.XmlClass.loadClass(XmlClass....
0
votes
1answer
395 views

Selenium Webdriver fails to load browser through WebDriverManager

We can run our tests in different browsers in selenium Webdriver, previously we need to executable files to run our test in any browser. But now we can achieve without using exe files & with the ...
0
votes
1answer
10k views

How can I check if a text box is empty using Katalon Studio (or Selenium)?

My site has a text field with a default value that is filled after first user login. But, on the first visit, the text box is empty. How can I check if a text box is empty or not? Using Katalon ...
0
votes
2answers
71 views

How to Automate the fields that are text and drop downs. You are not sure that how may fields will be and of which type (text/drop down.)

The situation is that admin sets the Specified fields for the front end user and it is upon admin to decide how many fields he'll set for the user. One thing is that he can only create 2 types of ...
0
votes
0answers
18 views

How to handle a Radio Button with is between /Label and /Span in Selenium Ruby Automation where Radio button get selected by [::Before ::After events] [closed]

I am Using a Selenium - Ruby -Capybara BDD framework. I have a screen which has Radio button In a screen there are two Radio button options. When Radio Button is not clicked <label class="css-...
1
vote
1answer
111 views

Can't select price range (Selenium + Python)

I have a small test case: Open the browser Enter the URL “http://practice.automationtesting.in/shop/” Adjust the filter by price between 150 to 450. I tried to use ActionChains, but no result. ...
0
votes
0answers
29 views

Clicking a link in <a> tag using selenium [duplicate]

suppose the following is mentioned in the tag a: <a href=www.google.com/url?url=www.xyz.com> www.xyz.com/1213sdsd/en-us </a> The text between the tagname is also a link. How do I ...
-4
votes
1answer
29 views

How to use element when attribute values are same [closed]

Here is HTML code so how to inspect elements when there is same attribute value
1
vote
5answers
2k views

Why driver.get() method is not recognized?

I have setup selenium in Intellij Idea. But when tried to create a simple instance it doesn't recognize "get" method. This is what I have done up to now. System.setProperty("webdriver.chrome....
0
votes
2answers
3k views

How to integrate/merge multiple extent reports into one single report using selenium, extent report v3xx

I am running selenium scripts using jenkins jobs/multijob and its creating multiple html reports for different modules. How can we combine/merge all html reports to one single report? Extent report ...
4
votes
2answers
1k views

How do I disable 'show all' download bar of chrome in selenium

I need to disable 'show all' download bar of chrome in selenium. Because the download bar is showing, UI elements in the lower portion of my page that need to be clicked are not visible. I'm looking ...
0
votes
1answer
37 views

Webdriver.io - Use selector to get all grand children?

Using webdriver.io.... For <table> <tbody> <td></td> I can get all the td elements with $$('td'). But I can't with $('table').$$('td'). Instead I have to do $('tbody')...
-1
votes
0answers
20 views

Selenium - Syntax Error in Eclipse, but not in InteliJ [closed]

System.setProperty("webdriver.chrome.driver","chromedriver.exe"); Shows the error: Syntax error on token ".", @ expected after this token I used the same in Intellij idea doesn't shows the error, ...
-2
votes
0answers
10 views

Getting execu error: Failed configuration

[TestNG] Running: C:\Users\A654918\AppData\Local\Temp\testng-eclipse-461473769\testng-customsuite.xml FAILED CONFIGURATION: @BeforeTest Login org.testng.TestNGException: Method Login requires 1 ...
-1
votes
1answer
131 views

Text field clear automatically after entering the value as sendkeys

I tried to login on my mobile webbrowser. After passing my username as string, it clears automatically. My code is loginId.click(); loginId.sendKeys(userName); The script fails only with the ...
7
votes
2answers
4k views

Send keys to no element in particular

The way I know of sending keys using the WebDriver Python bindings is as follows: element.send_keys(value) How can I send a key (specifically the Escape key) to no element in particular, just to the ...
0
votes
2answers
34 views

How to open two separate tabs in same google chrome window using webdriver and python? [duplicate]

I need to test interacting with two tabs in Chrome. I've written a test in Python using Webdriver where I open Chrome with one tab. I need to open a second tab (similarly to using Ctrl+t) so I can ...
-1
votes
0answers
24 views

What's going on the class name? Unreadable [closed]

I'm trying to automate an e-commerce web page. The page elements have unreadable class name like this What they've done to the class name? Has anyone experienced the same issue?
0
votes
0answers
7 views

Using live_server fixture in pytest: Site cannot be reached

I am trying to run selenium tests with pytest-django for my django app. Pytest-django provides a fixture called live_server. I am supposed to get the URL with live_server.url. Now when I try to visit ...
3
votes
2answers
557 views

Newbie question: How do I run a JUnit 3 test on Portable Firefox 3.6 in Selenium RC (1.0.3)?

I'm pretty new to selenium, and I'm following the Selenium Simplified book examples. I'm trying to run a simple test that was created in Selenium IDE on Portable Firefox 3.6 and saved as a JUnit 3 ...
3
votes
2answers
4k views

Selenium error in NUnit C#

I got the following error when I try to run this test: TheNewTest : FailedSelenium.SeleniumException : Timed out after 5000ms at Selenium.HttpCommandProcessor.DoCommand(String command, String[] ...
0
votes
0answers
23 views

Selenium click is being intercepted [duplicate]

I've got Tests written using Selenium/Java. There is an element with an id="xyz". I need to wait for the above element to disappear, so I am using invisibilityOf() WebDriverWait wait = new ...
0
votes
3answers
179 views

Can't Select random months dates using jquery calender

I have Jquery calender in my application. I have task to select dates from different months using Selenium, but I can do only previous month and forward month. Actually I need to select dates from ...
1
vote
1answer
773 views

unknown error: cannot create temp dir for unpacking extensions when trying to start Chrome from a LOCAL_SYSTEM service

We are trying to get our automated webtests working independently of what version of Chrome we're using. These automated tests work as follows: We have a Karaf container agent running as a service; ...
2
votes
2answers
72 views

Tests fail when triggered through jenkins

I have upgraded my test suite to latest selenium, Firefox, and geckodriver. When I run the tests locally they work fine, when I run them on a remote box executing the command in the remote box they ...
3
votes
0answers
930 views

How to use multiple wait conditions in Selenium Webdriver using ruby?

I wanted to know, how I can use following waits in program at which situations? 1. driver.manage.timeouts.implicit_wait = 20 2. driver.manage.timeouts.script_timeout = 20 3. driver.manage.timeouts....
0
votes
0answers
15 views

[1582522761.219][SEVERE]: Timed out receiving message from renderer: 0.100 ,Starting to end on console this message displaying, help me out [duplicate]

Using selenium with java chrome version is : https://chromedriver.storage.googleapis.com/index.html?path=80.0.3987.106/
1
vote
3answers
156 views

How to get XPath for the text after the <b> tags

I Need to get XPath for the following, to get the text after the <b> tags <li class="SpacedOut"> <b>Name 6:</b> "ABC" <b>Name 1:</b> "BCD" <b>Name ...
0
votes
0answers
28 views

Iteration through webelements in java [duplicate]

Lately I've been struggling with iterating through a website's elements. I'm using Cucumber/Gherkin for my tests. Every test runs smoothly and I have no problems except when I want to iterate. ...
15
votes
4answers
61k views

What is Selenium's default timeout for page loading?

I am using Selenium 2. I have loaded the page using Get command in WebDriver class which is in the package org.openqa.selenium. My question is that what is Selenium's default timeout for page loading?
1
vote
5answers
6k views

Unable to click button using Selenium Webdriver Java

I am trying to click a button through webdriver. After inspecting the button element it highlights to the following: XPath: /html/body/div/div/main/div/div[2]/div/div[2]/table/tbody/tr/td[4]/form/...
0
votes
2answers
34 views

How to check if all td tags contain specified text using xpath Selenium Java?

I'm trying to check if all td tags contain specified text using xpath like: WebElement tableId = driver.findElement(By.id("tablepress-6")); if (!driver.findElements(By.xpath("//td[contains(text(),'"...
0
votes
1answer
76 views

How can I handle multiple pages with the same loop Selenium?

I'm trying to handle elements from multiple pages via the same loop after click next button like on website: driver.get("https://www.scimagojr.com/journalrank.php?country=UA&page=1"); ...

1 2 3 4 5 88