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
1answer
9 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
8 views

Maven error mvn test

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@...
2
votes
1answer
363 views

Automating Embedded Webviews in a MAC OSX Native application

I have a MAC OSX native application. Some of the screens in this application is using Webviews. My specific requirement is to automate this view using Selenium. Questions that I have: Is it really ...
0
votes
1answer
49 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
2answers
2k views

How to reliably click bootstrap dropdown with no button element?

I am using Selenium to try and select an element in a bootstrap dropdown menu, but there is no button element present. The website uses all JavaScript to enable the dropdown. The HTML code for the ...
0
votes
0answers
8 views

How to handle a Radio Button with in the Label [::Before Span :: After] in Selenium Ruby Automation

In a screen there is a Radio option under /label ::Before /span ::after Anybody know how to handle it in Selenium Ruby
0
votes
2answers
25 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
2answers
141 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 ...
2
votes
1answer
58 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 ...
4
votes
4answers
70k views

Webdriver : How to perform scroll down an element (example div) using selenium?

The Scroll element in the page is actually a div with scroll bound to it. Here is the HTML snippet. <div class="slimScrollBar" style="background: none repeat scroll 0% 0% rgb(137, 137, 137); ...
0
votes
0answers
14 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
18 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 ...
4
votes
7answers
11k views

Force Selenium to wait for spinner to disappear before resuming

I'm stuck with this problem: Our test page will show a spinner while loading data. To solve this problem I added the following lines in a method to make sure the spinner was not present before ...
2
votes
5answers
107 views

How to select option in a dropdown when the html-tag has a random id

I have a problem how to select a desired option (e.g. From, To...etc.) from list if 'datalist id' and 'select name' are randomly generated. This means that the ID and name has another value after ...
2
votes
2answers
52 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....
0
votes
1answer
54 views

login for https url having https different url for browser popup in selenium python

I have url https://dc1-common.naops.exu.xxxx.se/cgi-bin/index.pl and after entering I got another url https://dc1-common.naops.exu.xxxx.se with Sign In Browser pop up which requires for Authentication ...
-3
votes
0answers
27 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
4answers
3k views

Selenium Java :- [1553593587.996][SEVERE]: Timed out receiving message from renderer: 10.000 [1553593587.997][WARNING]: screenshot failed, retrying

I am using Selenium 3.14.0 with Java to automate my tests. Until yesterday(25Mar 2018) , everything was up and running fine.In case of any failures , screenshots were taken and embedded successfully. ...
0
votes
2answers
41 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
7k views

selenium 3.11 - JAVA (Multi-threading),Multiple browsers launch attempted Exceptions Observed

OS: Windows 10 Selenium Version: 3.11 Browser: Internet Explorer, Firefox, Opera, Chrome Browser Version: Expected Behavior - The program should launch all the browsers, open websites and perform ...
-3
votes
1answer
41 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
57 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 ...
3
votes
2answers
58 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
0answers
26 views

Stored data in ArrayList of one website to be used in another Website [closed]

Stored data in ArrayList of one website to be used in another Website I am storing data in an arraylist of fields and labels display in website I logout from the browser Now I am opening another web ...
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
46 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 ...
3
votes
5answers
49k views

Unable to locate element throwing a org.openqa.selenium.NoSuchElementException in TestNG

Am unable to click on element after executing a First test second test showing a org.openqa.selenium.NoSuchElementException . My code Here: public class snapooh { WebDriver driver; @BeforeTest ...
0
votes
1answer
26 views

How to get text from header having separator

How to fetch text for <h1 _ngcontent-gtj-c13=""> Site-2 <span _ngcontent-gtj-c13="" class="seprator">|</span> Building-1 <!----> </h1> I have used attribute ...
0
votes
2answers
38 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
61 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
1answer
35 views

Run Selenium test case in time interval from a console application c#

how to create a console app - a batch file which will hit my Automation testing application and runs selected test cases. I have test case with code coverage and it runs from my visual studio . and ...
0
votes
1answer
487 views

Permissions error trying to run Appium test on Android

I am not able to run my automation testing with Appium server using Eclipse with Selenium. The error I get is: Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to ...
0
votes
2answers
72 views

How to Handle Dynamic Changing IDs inside a span

How to Handle Dynamic Changing IDs inside a span In XPath? for example : <span id="listv2_f40a0e90dbcc089cae10d48a489619ee_total_rows" style="margin-left: 1px;">2000</span> In this ...
1
vote
2answers
754 views

How to drag an element and drop it in another frame?

Hope you doing well, I'm trying to dragAndDrop an element from FrameOne to FrameTwo but not able to do so.Please help me to understand the concept and what I'm doing wrong here and need to achieve ...
1
vote
1answer
157 views

Can Selenium automate iOS Safari webpage tests on a real iPhone?

I want to automate a website on a real iPhone with Selenium. Is that possible or do I need Appium? Ideally I will launch my tests from my Windows machine via RemoteWebDriver edit: it looks like it ...
4
votes
0answers
291 views

Integrating Selenium Webdriver tests written in Java to SpiraTest

I'm interested in SpiraTest's and Selenium Webdriver's collaboration. My objective - launch a Selenium test written in Java on Eclipse. Can the SpiraTest quality management tool run .exe or .bat files ...
2
votes
4answers
546 views

CLEAR Method skipped while running the tests

I'm writing automation script for a page in which there is a text box. The scenario is as follows: I click on the text box and enter value which will throw error I clear the text box and add valid ...
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 ...
3
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 ...
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 ...
2
votes
6answers
33k views

Cannot get a STRING value from a NUMERIC cell. How can I resolve this issue in selenium webdriver using POI?

I am trying to read data from an excel sheet and write on my application.But shows an error while trying to pass a numeric value using string. Please suggest me how can I resolve the issue. Please see ...
-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 ...
2
votes
3answers
3k views

Selecting element value from drop down list with selenium using POM

I'm trying to make simple test to register in website - https://www.midomi.com/. I'm using c# and selenium but have stuck in selecting values from dropdown list using Page object model. My project ...
0
votes
3answers
314 views

Find when iframe is closed in selenium

I am writing tests on a third party system, that utilizes iframes. I have been going through my code and eliminating places where I have been using waits/sleep for 2-5 seconds, and looking more for ...
0
votes
3answers
389 views

How to run testcases on one browser

I have created some test cases in Eclipse. But while running the testng.xml file it opens in a new browser every time. How do I run it in single browser? I am calling below for each test case, so ...
1
vote
2answers
79 views

How can users run TestNG cases without using an IDE?

I run my test using Java, Selenium and TestNG. When I execute my test suite I have it set up where the testng.xml has all the configurations to run my tests. I am wondering, if I can set up some UI ...
1
vote
1answer
50 views

Selenium WebDriver gives the same window handle across multiple Firefox browser sessions

We use different profiles to test different features of our system. If we open new multiple FF sessions (each with it's own profile), Selenium Webdriver only uses 1 window handle identifier. (pseudo ...
0
votes
2answers
65 views

How can we run only selected testcases from extent.html report in selenium webdriver?

I'am running testng suite and then extent.html report is being generated. Now I want to customize my report like; i should be able to select only failed testcases in my report and then should be able ...
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 ...

1 2 3 4 5 88