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
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....
0
votes
1answer
19 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?
-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' ...
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
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-...
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 ...
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. ...
-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
-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 ...
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(...
-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, ...
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
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 ...
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
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 ...
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 ...
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/
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. ...
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(),'"...
-1
votes
0answers
13 views

Maven error mvn test [duplicate]

I'm getting the below error when i try to perform mvn test command. Running eurocash.drivermanager.TestBase Configuring TestNG with: org.apache.maven.surefire.testng.conf.TestNGMapConfigurator@...
0
votes
2answers
28 views

Headless mode buttons are hidden - I think the side drawer is closed?

Using webdriver.io and chrome for e2e test. In the browser GUI the test runs fine. But with headless chrome it complains about not finding buttons in the left side nav bar. I think in headless the ...
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"); ...
0
votes
0answers
16 views

Failing to update a date using python and selenium

I am trying to change a date one day forward on a calendar date picker using python and selenium. <td colspan="2" class="textBlack">&nbsp;Due:&nbsp; ...
1
vote
1answer
21 views

How could I improve my page objects for this iterator assertion?

I am writing a e2e test for my front end web app with webdriver.io and node/javascript. Specifically, I want to improve my page objects. I have a dropdown that has two items(two rows of items) in a ...
2
votes
1answer
62 views

Running Selenium not under a Testing Framework

I've been using Selenium for a while but with a slightly different scope (actually constraints). Instead of running a test for a particular site, I'm interested for instance in filling in a web form ...
-3
votes
0answers
30 views

Call browser from one step and enter information from another step? [duplicate]

I want to call google in one step, and when it is open I need to enter the information from another step. I am facing problems because I don't want to open the page more than once. In the below code ...
0
votes
2answers
44 views

Selenium WebDriver - handling authentication popups in Chrome and Edge

We have an internal web application that I am trying to automate using Selenium and BrowserStack, in C#. I have managed to use BrowserStack's 'local' functionality to get at the application but I'm ...
-3
votes
1answer
43 views

How can i use driver.findelement for All Steps [duplicate]

I need to call google in a test case and with google open enter the information in the fields. Take a look at my code: import cucumber.api.PendingException; import cucumber.api.java.es.Dado; import ...
1
vote
1answer
63 views

How do I make my variables available to all steps of my tests

I'm using data faker and I would like to know how to make my variables available in all steps of my test. I wanted to leave all elements mapped in the initial step, or be given WebDriver driver = ...
0
votes
2answers
25 views

Search by xpath and text where text is a string contained within a list

I'm struggling to find a way to search a page by xpath that contains text that I've defined within a list using selenium. If I replace Role_List[y] by "WK" etc., it works fine and I can repeat it 4 ...
2
votes
2answers
54 views

In Gmail Web,unable to access “Create Account” menu Options, I can't capture the menu item “Para mim” throws exception

I've tried everything !!. I need to inspect the "for me" from button "Criar Item. public void que_eu_esteja_na_pagina_principal_do_gmail() throws Throwable { System.setProperty("webdriver.chrome....
3
votes
2answers
60 views

Is there any automation tools which gives any feature to first check (as a pre-request) for internet connection up or down before script execution?

It was accidental but its required feature for most of the modern automation tools. Yesterday I made one automation script job on a remote machine and it will be supposed to run on schedule time at 6 ...
0
votes
1answer
34 views

element is not getting clicked even it got validated from dropdown list in selenium WebDriver

HTML CODE <div id="__test0-defaultXML--idQueueName" data-sap-ui="__test0-defaultXML--idQueueName" style="width: 100%; max-width: 100%;" class="sapMSlt sapMSltDefault sapMSltHoverable ...
1
vote
2answers
47 views

driver.findElement used outside the method throwing Nullpointer Exception in POM model

I have created two class files 'LoginPage.java' and 'orangeHRM.java' Now as part of POM, I have initialized the 'LoginPage' object in 'OrangeHRM' LoginPage LP = new LoginPage(driver); I have ...
0
votes
2answers
39 views

Clicking on a tab using selenium not working

I'm trying to go through this site "https://www.dream11.com/cricket/create-team/1278/17702" and once this site is loaded, I want to click the skip button (which I can do) and then go on each of the ...
3
votes
3answers
65 views

Google Chrome browser and driver versioning

I have a CI pipeline that runs my E2E tests, which the agent is prepared by: Install Google Chrome by brew (latest) Chromedriver is installed by chromedriver_binary python package (fixed version) ...
1
vote
0answers
21 views

How to integrate and configure Polly.js with WebdriverIO?

So, I have been using webdriverIO. I noticed recently, there was support for puppeteer instead of using the typical selenium webdriver. I have configured my e2e tests to use puppeteer now instead ...
1
vote
1answer
40 views

Writing to notepad based on environment

Does anyone know of a way that I can write to my notepad file, but depending on the environment it is running on, what notepad file to write to? So for example, I've automated an account setup, as it ...
-1
votes
0answers
89 views

Python + Selenium Zen Desk Help test automation

Details: We currently use Zen Desk Help in our Magento project and it is integrated on several pages. I'd like to test it via Selenium, but I get an error message that Selenium is not able to ...
0
votes
1answer
33 views

WebDriver wait.until using the arrow function throws exception when false

This works if true but fails when it hits false. Is there any way to make this work while it is true? WebDriverWait wait = new WebDriverWait(driver, 30); ExpectedCondition<Boolean&...
0
votes
1answer
30 views

Cannot locate element during the second iteration in the loop selenium python

The goal is to add each product to the cart one by one. I have an error on the second iteration. selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable ...
0
votes
1answer
18 views

Selenium C# - verifying the drop down was selected item

I have selected the drop-down now i want to verify the selected drop down is correct using Assert I have noticed that the selected item has attribute "selected" var ftpTransDropdown = Driver....
1
vote
1answer
76 views

How webdriver version is used in protractor

I have chrome 80 installed in my system. webdriver manager version: webdriver-manager 12.1.7 webdriver status: Protractor version: Version 5.4.2 Issue: This configuration works fine in local ...
0
votes
1answer
36 views

org.openqa.selenium.NoSuchElementException

here is my sript driver.findElement(By.xpath("//span[contains(text(),'Hotel Log')]")).click(); Thread.sleep(10000L); driver.findElement(By.xpath("//button[@class='btn cta-button']"))....
1
vote
0answers
27 views

Could I improve my code by opening multiple tabs?

I'm trying to scrape information from an array of links using selenium. Each of them take ~2 seconds to scrape, and it adds up to quite a while. Is it possible / worth trying to open the links in ...
0
votes
0answers
15 views

Has anyone used Github Actions to run Selenium Tests on Safari and Macos VM?

Github Actions is a nice way to kick off builds and tests. However I'm unable to enable the "Allow Remote Automation" setting in Safari from the command line. I've found a few command line posts ...
0
votes
2answers
64 views

I absolutely cannot get this xpath to work… selecting a radio button

I have been trying for days to select this button... I've tried xpaths by ID type, input type, child of, etc. What am I missing here, why is VS unable to locate the "element" ? I can use the same ...
0
votes
2answers
70 views

Testing multiple browser configurations via Selenium WebDriver

When covering cross-browser testing using Selenium WebDriver, how do you provide the browser and version information to the tool (e.g. BrowserStack, Sauce Labs)? For example, you're wanting to execute ...
0
votes
1answer
27 views

I have a specific problems while entering date using sendKeys in Selenium WebDriver

My date field accepts the value MM/DD/YYYY. Here, as soon as enter MM, it introduces / and then as I enter DD, it again introduces / and then I will enter YYYY. If I use selenium sendKeys, it is not ...

1 2 3 4 5 88