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
1
vote
3answers
499 views

How to launch chrome from a Custom Port using selenium?

Exception in thread "main" org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:44248 I am frequently getting this error. The script ...
2
votes
2answers
879 views

How to query the Canvas using Selenium with JavaScript Executor or Protractor?

I like to know if it's possible to automate this 'graph' which is created on the canvas, if yes, how to automate it. I have to interact with all the elements on the 'graph or a map like thing' by ...
0
votes
1answer
51 views

Once an exception is thrown, it shouldn't ideally go to a TearDown/ aftertest

I'm using the NUnit framework. If my test-case failed with an exception like a timeout or any other exceptions. After the test it should go to [Teardown] but it is not going struck there abort the ...
3
votes
2answers
89 views

What is the difference between BeforeClass and BeforeTest in TestNG - Selenium WebDriver

What is the difference between BeforeClass and BeforeTest in TestNG - Selenium WebDriver, please suggest me best link or site for this.
2
votes
0answers
54 views

BeforeClass doesn't get displayed in TestNG test results window

We are expanding our TestNG suite to run multiple tests. Doing so we've encountered a strange occurrence. In one suite I have two tests. Both tests have one class each. Tests in IntegrationTest.java ...
0
votes
1answer
336 views

Methods to setup parallel test execution in NUnit with Selenium WebDriver C#

For true parallel execution of Selenium tests in NUnit, does the setup of the webdriver object need to be within the test method itself? Or is there a better way? Previously, for parallel execution ...
1
vote
2answers
379 views

Encountered Error Could not load type 'OpenQA.Selenium.Internal.IWrapsElement' from assembly 'WebDriver

I'm working in multiple browser testing. It was working code with chrome browser. Recently I have installed "Install-Package Selenium.WebDriver -Version 4.0.0-alpha04". MSedge Chromium and chrome ...
0
votes
0answers
35 views

How to Access span element and change it's value

I am trying to create a python + selenium script in order to fetch CSV from a salesforce pardot page. Can Somebody please help me in accessing the nested span element inside the dropdown list which ...
1
vote
1answer
230 views

Unable to load MS edge chromium with Selenium

I'm trying to load the msedge chromium. encountering error. Steps to recreate: Installed mschromium Beta and Dev versions. Installed the Nuget package "Install-Package Selenium.WebDriver -Version 4....
0
votes
0answers
27 views

Facing issues while sendkeys for a autosuggestion dropdown in a webapplication

1) On the current screen we have dropdown with div tag (Select Agent) 2) When we click on the dropdown, the options appear only till time the cursor stays on the dropdown, once moved the options ...
1
vote
0answers
44 views

There is a way to identify font type in an Android app? (Python, Appium)

Here is the deal: i'm testing an android app and the client wants us to test font types, sizes and colors. Using Appium's explorer i'm able to see the objects properties (such us: text, enabled, etc) ...
0
votes
1answer
371 views

[Python][Selenium] New tab is opened but Selenium can't detect it

I am working with selenium in python. Currently, I have written a script that opens a new tab from one of the search results of Google. The associated code is as follows: from time import sleep from ...
0
votes
1answer
29 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
44 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
3answers
1k 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
30 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
31 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. ...
0
votes
2answers
146 views

What is the correct way writing e2e tests?

I have a task do create e2e for a web app, but I don't know what is the correct way doing it. For example: In app there is a possibility to add new employee, so the scenario is as described: Login ...
0
votes
1answer
44 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')...
0
votes
0answers
51 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
95 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
1k views

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

I'm 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, I'm ...
0
votes
0answers
29 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
29 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
41 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
2answers
31 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
782 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
24 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
26 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
89 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 ...
0
votes
3answers
169 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
45 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
74 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
29 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
73 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
73 views

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

It was accidental but it's a 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 ...
1
vote
2answers
61 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
51 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
88 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) ...
3
votes
0answers
75 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
44 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 ...
0
votes
1answer
45 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
376 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
34 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....
2
votes
1answer
573 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
55 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
35 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
112 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
194 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 ...

1
3 4
5
6 7
92