Skip to main content

Questions tagged [selenium-webdriver]

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

572 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
0 answers
523 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 ...
Gediminas Tubelevicius's user avatar
5 votes
2 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, ...
Charlie's user avatar
  • 51
5 votes
0 answers
254 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 ...
Aleks G's user avatar
  • 183
5 votes
2 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 ...
sreelakshmi's user avatar
5 votes
0 answers
197 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 ...
ItsASine's user avatar
  • 143
5 votes
0 answers
327 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 ...
Helping Hands's user avatar
4 votes
0 answers
235 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 ...
adbarads's user avatar
  • 141
4 votes
1 answer
9k 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 ...
Roel Van de Paar's user avatar
4 votes
1 answer
829 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'...
Baini.Marouane's user avatar
4 votes
1 answer
185 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'...
Baini.Marouane's user avatar
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 = ...
Pravin's user avatar
  • 71
4 votes
1 answer
307 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 ...
Georg Ritzmann's user avatar
3 votes
0 answers
512 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 ...
Hasse Andersen's user avatar
3 votes
0 answers
762 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 ...
Conrad B's user avatar
  • 213
3 votes
0 answers
392 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 ...
Millie Anne Volante's user avatar
3 votes
0 answers
199 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 ...
D. Jung's user avatar
  • 53
3 votes
1 answer
157 views

GUI Testing Angular SPA?

Developer here. Our QA team is researching new strategies for E2E testing for a new product. To start, it will be an Angular SPA, and eventually a PWA. They are leaning towards using Quantum / ...
Jacob Ensor's user avatar
3 votes
1 answer
586 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 ...
Sebastian Inones's user avatar
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 ...
rodut's user avatar
  • 197
3 votes
6 answers
2k 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 ...
Majkl's user avatar
  • 473
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=...
Albin K S's user avatar
  • 197
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. ...
user36987's user avatar
3 votes
0 answers
395 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://...
Raj Nayan's user avatar
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 ...
Sameer Malhotra's user avatar
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-...
Hanan Ur Rehman's user avatar
3 votes
7 answers
4k 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 ...
Gooner4Life's user avatar
3 votes
0 answers
956 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 ...
Genkerke's user avatar
3 votes
1 answer
980 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 ...
QAMember's user avatar
  • 1,520
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(); //---...
Pooja Gadekar's user avatar
3 votes
1 answer
702 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 ...
Sajini Fernando's user avatar
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::...
Kai Mou's user avatar
  • 131
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 ...
Shailendra Rathore's user avatar
3 votes
0 answers
3k 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 --...
Thufir's user avatar
  • 367
3 votes
2 answers
81 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 ...
Dingo's user avatar
  • 101
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 ...
Guest1234's user avatar
3 votes
3 answers
615 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 ...
Daniel_V's user avatar
3 votes
0 answers
208 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 ...
CodeBlooded's user avatar
2 votes
1 answer
744 views

How to click on the list when it said the list has no attribute "click"?

from selenium import webdriver import time from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from ...
Carl Carl's user avatar
2 votes
0 answers
3k views

Selenium, Python: Write, click next page loop

I'm trying to learn selenium with python and have been trying to automate: Search of the next button on the page. Click on this button. Save each HTML page from the next page in a file. Repeat until ...
Christopher McFaul's user avatar
2 votes
2 answers
1k 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 ...
Samian's user avatar
  • 21
2 votes
0 answers
123 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 ...
eshu's user avatar
  • 25
2 votes
0 answers
86 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 ...
Mat's user avatar
  • 151
2 votes
0 answers
1k 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....
Cory Smith's user avatar
2 votes
0 answers
946 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-...
Rahul Kumar's user avatar
2 votes
0 answers
331 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 ...
Nikola Pepic's user avatar
2 votes
4 answers
8k 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 ...
Thiyagarajan's user avatar
2 votes
3 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 ...
PDHide's user avatar
  • 11.1k
2 votes
1 answer
277 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 ...
Dennis Reda's user avatar
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 ...
Lolpez's user avatar
  • 141

1
2 3 4 5
12