Questions tagged [selenium-webdriver]

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

483 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
0answers
875 views

Is there a way to use Selenium 3 to automate testing in Safari 11 without the 'glass pane'?

According to the WebKit documentation for Safari 10: "When running a WebDriver test in Safari, test execution is confined to special Automation windows that are isolated from normal browsing ...
6
votes
1answer
857 views

Getting web driver exception message while tapping list elements using appium

I am using appium 1.4.8 on mac and I'm automating native app using selenium. I am stuck in a situation where I need to tap each element in a list. I wrote below code: List allKeywords=driver....
6
votes
0answers
332 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
0answers
112 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
2answers
3k views

How to run tests in parallel using Robot Framework Maven plugin?

I'm using the Robot Framework Maven plugin to execute my Robot Framework scripts. I'm using this plugin because some of my keywords are implemented in Java and packaged inside an external library. I ...
5
votes
0answers
166 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
1answer
330 views

Internet Explorer doesnot login to website of remote desktop is not opened

I am writing a simple script that will log in to a website, I am trying to run it through Jenkins job on a remote desktop, I have placed my code on GIT Hub and configured Jenkins to run test. My ...
5
votes
0answers
292 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
1answer
108 views

How expected condition 'Isclickable' works in protractor

I am trying to click the below button element: <button _ngcontent-xjt-c6="" class="ef-ui-btn-inline-sm ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only" ...
4
votes
2answers
2k views

Locate Elements through Shadow DOM in Chrome Selenium?

I currently have an automation tool built using Python. Currently, the tool serves the custom application my company has built on Salesforce. Salesforce released a Winter 2020 version, and implemented ...
4
votes
2answers
554 views

How to interact with the radio button if isDisplayed, isEnables are false

Scenario: I am automating a feature where I need to click on the radio button but after many attempts, it didn't work. So I checked with isDisplayed, isEnabled and isSelected. Upon execution it was ...
4
votes
2answers
135 views

Capturing http errors and customizing the message in webdriver

How to Capture HTTP errors on a web page such as page not found, 500 Internal server errors and customizing the message in webdriver.
4
votes
1answer
1k views

Selenium & Adwords - How am I getting logged out?

I am currently building a reporting tool with Selenium on Adwords. (And no, I cannot use Google's API because it doesn't provide the functionality I want). I am trying to avoid logging in and logging ...
4
votes
2answers
2k 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 ...
4
votes
0answers
1k 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
2answers
437 views

Tomcat Server when used amongst Selenium Grid setup

We are using a different style of Automation framework in our project (as per client request) wherein we have designed a JSP page and this page contains links and buttons through which each ...
4
votes
2answers
2k views

How to pass arguments to selenium from autoit script

Autoit has an order value, which I want to pass it to the database as an argument to get table contents of that order id. I tried passing from command-line, but I don't want the arguments to get ...
4
votes
1answer
236 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 ...
4
votes
1answer
405 views

How to control CEF3 portions of .NET project using Webdriver2?

We have a very large .NET project. This has been E2E/regression tested using QTP for 3 years. Eventually, our AUT is moving to the WEB. This process is expected to take a couple of years, it will be ...
3
votes
0answers
47 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
2answers
292 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, ...
3
votes
1answer
108 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
82 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
5answers
326 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
3answers
685 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
1answer
417 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
0answers
262 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
1answer
573 views

What is the good practice to instantiate page object in POM and PageObjectFactory?

I am practising POM and Page Object factory. I would like to learn good practices in instantiating the pages. till now I am Instantiating the pages from test class (e.g. TC_01_Register.java) using the ...
3
votes
2answers
473 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
2answers
641 views

Protractor Image didn't upload on dialog box?

I want to test the image upload functionality using Protractor but my written script didn't work. When we click on the dialogue box image it opens the window to select the desired image. After the ...
3
votes
5answers
985 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
1answer
6k 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
0answers
891 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
0answers
734 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
0answers
317 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
0answers
216 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
0answers
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
0answers
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
0answers
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
2answers
69 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
0answers
959 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
0answers
706 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'...
3
votes
0answers
147 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'...
3
votes
3answers
528 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
0answers
170 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
0answers
43 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 ...
2
votes
0answers
424 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
0answers
62 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
1answer
741 views

Selenium code generates error messages the likes of CS0246 & CS0103

I am getting lots of CS0246 Code error messages in Visual Studio after trying to run the Selenium code below. I have chosen the ASP.Net Core file to programme the code in. The file is called LoginTest....

1
2 3 4 5
10