Questions tagged [selenium-webdriver]
Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.
556
questions with no upvoted or accepted answers
7
votes
2
answers
494
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 ...
5
votes
3
answers
3k
views
Test Automation for different user roles within an application - Selenium and C#
I was a developer a long time ago and have been tasked with our teams automated testing with Selenium and C# for our web application;
Our application has many roles a user can be; such as an admin, ...
5
votes
1
answer
198
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 ...
5
votes
3
answers
6k
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 ...
5
votes
1
answer
191
views
Is there a way to stop GridLauncher opening during testing on Mac?
Since moving from a Linux VM to a Macbook Pro for testing, I have been having a recurring issue running Protractor automation.
At a certain point in my suite all, a Java application called ...
5
votes
1
answer
323
views
Issue when login to android app. using selendroid
I am using selendroid to test android app. Everything works fine till login click/tap. Once I Tap/Click on login button it close my android application and does not return any error.
My code is given ...
4
votes
1
answer
217
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 ...
4
votes
1
answer
8k
views
Selenium: how to prevent a just-started Chrome window from receiving focus
Using Selenium + chromedriver on Linux, like so;
chrome_options = Options()
driver = webdriver.Chrome('/usr/bin/chromedriver',options=chrome_options)
driver.get('https://www.somewebsite.com')
Chrome ...
4
votes
2
answers
802
views
How to add an assert to an if ..else condition using Phpunit and selenium webdriver
I'm working on test automation for a big project and I'm using Phpunit and as a server I'm using Selenium WebDriver.
In the source code I'm using asserts like :
$this->assertContains('Project Title'...
4
votes
1
answer
184
views
How to configure Phpunit.xml to use multiple browsers in Phpunit test with selenium webdriver
I'm working on automation test for a big project and I'm using Phpunit for functional test and as a server selenium webdriver.
I want to execute many tests using different browsers, I don't know what'...
4
votes
1
answer
2k
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?
driver.manage.timeouts.implicit_wait = 20
driver.manage.timeouts.script_timeout = 20
driver.manage.timeouts.page_load = ...
4
votes
1
answer
300
views
Getting and logging the selenium version used in a groovy project
I'm using Selenium in my Groovy application as a Maven dependency. Now I'm looking for a way to log the used Selenium Version to the console.
I tried this:
BuildInfo info = new BuildInfo();
def ...
3
votes
0
answers
419
views
Server gets incredibly slow when running Selenium
I'm attempting to run Selenium (Chrome) test on 2 servers, each running Windows Server 2019 Standard (with GUI).
The first server (the one with the worst specs) has the following specs:
It runs ...
3
votes
0
answers
613
views
selenium initial connect timeout
How do I tell selenium webdriver to retry/timeout when I start a session?
I'm spinning up a remote standalone java server (aka hub) as a process
I'm immediately going webdriver.Remote() and that ...
3
votes
0
answers
367
views
How to avoid using same data in parallel execution
This question is similar to How to manage application data when running multiple tests in parallel?
But I want to know if there's a way or listener in testNG that will lock certain method when running ...
3
votes
0
answers
177
views
How to find frame to given WebElement?
I am writing a Selenium testcase for a webpage which has multiple frames and WebElements. My goal is to get a specific WebElement by xpath without knowing anything about the iframes before starting ...
3
votes
1
answer
462
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
2
answers
4k
views
Headless Chrome browser won't switch to next window (Selenium + Python)
So I have a test case: When clicking a button a new window is opened. To switch to that new window I use:
window_after = self.driver.window_handles[1]
self.driver.switch_to.window(window_after)
When ...
3
votes
6
answers
1k
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 ...
3
votes
4
answers
2k
views
Drag & Drop issue in selenium web driver
Drag and Drop not working..as my drag and drop area not having 'Frames' i didn't use switchTo() here.
Actions action= new Actions(driver);
//driver.switchTo().frame(0);
WebElement drag=...
3
votes
1
answer
1k
views
How to click an available time slot in customized UI calendar?
I have customized UI calendar attached in screenshot having date and time slots to book some test drive. actually the booked slot div contains some class and available slot contains some class name.
...
3
votes
0
answers
379
views
Protractor: Getting 'Failed: Unknown error' for test running in Edge Browser
My setup:
Protractor Version: 5.3.0
Edge Version: 38.14393.2068.0
Edge HTML: 14.14393
MicrosoftWebDriver.exe version: 10.0.14393.0
Windows 10 Enterprise 64-bit
Code:
seleniumAddress: 'http://...
3
votes
2
answers
4k
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 ...
3
votes
2
answers
1k
views
How to select second value in drop using Katalon Chrome Extention?
I'm trying to make Katalon chrome extension to click the dd/mm/yyyy language.
But the problem is when I record the click on dd/mm/yyyy Katalon records
xpath=(.//*[normalize-space(text()) and normalize-...
3
votes
7
answers
3k
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 a value which will throw error
I clear the text box and add valid ...
3
votes
1
answer
8k
views
How to get coordinates of element inside iframe?
If driver switched to iframe, selenium would take a screenshot of iframe content only (EDIT: this is because of bug in gecko driver). I need to mask an element from the screenshot, but if I find an ...
3
votes
0
answers
955
views
Protractor starts Firefox but doesn't run any tests
Problem is the web app I'm testing is behind 2 basic auths and requires a proxy.
I wanted to pass the two basic auths by adding AutoAuth addon in a FireFox profile and setting up that profile to load ...
3
votes
1
answer
966
views
How to set browser window size using Phantom JS + Java
I am working on PhantomJS with Java for one of my project. I am looking for some help in working with PhantomJS in following scenario.
Scenario:
Step-1: Mouse hover on tab/link then 2 sub-links will ...
3
votes
0
answers
399
views
Multiple protractor tests creation using loops based on returned promise value
I would like to dynamically generate it blocks based on the values returned by a promise. Something along these lines:
describe('Main Page', function() {
var rowNumber=event.script1(); //---...
3
votes
1
answer
655
views
How do I access fields within Braintree's Hosted Fields' iframes using selenium
On my application payment gateway is Braintree, I need to automate it and face some difficulties when I am automating it, the major problem is I cannot send credit card details using xpath, I research ...
3
votes
0
answers
2k
views
Headless Chrome with Docker Compose
I'm currently trying to setup headless chrome testing with Capybara in my docker-compose file.
However, I keep getting that chromedriver has failed to start because it had crashed.
Selenium::...
3
votes
0
answers
1k
views
Drop-down not working with safariDriver on Safari 10
Getting below error while accessing drop-down
Using Safari 10 mac sierra with apple
`safariDriver`
Selenium Version 3.0.1
org.openqa.selenium.WebDriverException: An unknown server-side error ...
3
votes
0
answers
2k
views
How to run Selenium through xvfb? (X frame virtual buffer)
Somewhat specific to Ubuntu, this is towards running this JAR on a server.
Running xvfb just hangs for me, so trying to get the syntax properly:
thufir@doge:~/.html$
thufir@doge:~/.html$ xvfb-run --...
3
votes
2
answers
79
views
Script debugging on AJAX base web application. Can I bypass my dependent module test script execution in Eclipse?
I'm testing a web application in which all web controls are loaded dynamically using AJAX. I have a test script project in java Eclipse IDE.
Here is my problem. If, for example, I am debugging a test ...
3
votes
0
answers
1k
views
How to run same test case in different browsers in Cucumber using Java
New to automation and Cucumber.
I have a .feature test case (a simple login function) that I would like to run in multiple browsers in parallel.
I want to store the browser properties in a global ...
3
votes
3
answers
609
views
AngularJS - Testing User Permissions/ User Access Levels
In our web-application(built on Bootstrap and Angular), certain tabs in the navbar are displayed only to particular users. Certain input boxes/ buttons are enabled only to certain users. I want to ...
3
votes
0
answers
204
views
When and where does Intern.js opens browser and how to open a new browser by using intern script
I'm trying my hands at intern.js to automate my UI test. And I want to some test to run on a separate browser, i.e
open new browser run test
run test
close browser
and so on
but I'm unable to figure ...
2
votes
2
answers
750
views
Not able to match ChromeDriver version with chrome version
So at my current job I’m at a pinch, we can’t just download executable jars and use them. We have to request to download whatever we want . So the problem is , our chrome gets auto updated where as we ...
2
votes
0
answers
115
views
Cookie Banner is not shown [403 error]
I need help with the following scenario:
In a website, OneTrust cookies are implemented. The cookies are from an external company.
The cookie solution is implemented by including a couple of ...
2
votes
0
answers
85
views
Large scale selenium automation project fails when multiple suites are running all together
I am working in a large scale project automation with Selenium where multiple test suites are available. When a single suite is running, it works fine. But when all suites are running all together it ...
2
votes
0
answers
953
views
Selenium: How to switch to tab without focusing?
I'm using the Java Selenium and Chrome webdriver on Windows 10. I like to have a GUI up for debugging purposes, but my code keeps bringing the browser into focus. Specifically, lines like
driver....
2
votes
0
answers
911
views
I have been struggling for more that a day to fix the Duplicate class given when running my android project for automation
Error: Duplicate class org.openqa.selenium.SearchContext found in modules jetified-java-client-7.3.0.jar (java-client-7.3.0.jar) and jetified-selenium-server-standalone-3.141.59.jar (selenium-server-...
2
votes
0
answers
293
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 ...
2
votes
4
answers
7k
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 ...
2
votes
4
answers
6k
views
How to bring elements to view automatically in Protractor or selenium
I have a webpage to be tested which has a button at the footer of the page. When i click it, there should be an error message shown near to it.
I was successful in automating this scenario but the ...
2
votes
4
answers
2k
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
2
answers
250
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 ...
2
votes
0
answers
3k
views
Selenium c# how to get a window title by searching by its Handle Id?
In order to get a browser window title, the web driver must switch to the window by its Handle id:
string title = driver.SwitchTo().Window("Handle ID").Title;
I am testing opening multiples windows ...
2
votes
0
answers
498
views
decompose an HTML list with page fragments
note: Looking for simplest possible example of PageFactory and fragments. I've been referencing an article which uses additional libraries I wasn't aware of.
The desired structure:
Where there's ...