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
0answers
15 views

gitignore of Selenium WebDriver TestNG

For selenium webdriver testng using git, what should be part of gitignore so my scripts can run on any computer without any conflict. Thanks!
0
votes
0answers
35 views

How to protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code? [on hold]

Opening two chrome browsers. See below logs. Starting **ChromeDriver 76.0.3809.25** (a0c95f440512e06df1c9c206f2d79cc20be18bb1-refs/branch-heads/3809@{#271}) on port 8423 Only local connections are ...
1
vote
2answers
8k views

Check Box check and Uncheck using selenium web driver

I am not able to list out the check boxes which are checked and unchecked.the checkboxes are placed in the div tags. And only class name is generated dynamically when the check box is clicked. ...
3
votes
1answer
4k views

How to get coordinates of element inside iframe?

If driver switched to iframe, selenium would take screenshot of iframe content only (EDIT: this is because of bug in gecko driver). I need to mask an element from screenshot, but if I find area by ...
0
votes
1answer
998 views

Selenium Webdriver Java: Setting date on date-picker. Year is not populating in date-picker

I am automating a signup form for web application and there is a date of birth field which has date-picker on it. I am sending values in it by using sendKeys and the problem is that Year is not ...
-1
votes
0answers
26 views

Integrating Mocha/Selenium-Webdriver Tests with Docker [on hold]

I have been working on developing a suite of Mocha tests which tests the entire frontend of my company's web based application with the goal of having my tests being run as part of our CI process so ...
0
votes
1answer
407 views

How to inspect a element in a drop down menu in chrome and firefox?

The problem here is when we hover the mouse over the particular menu item, drop down items going to visible. When trying to click the inspect element the drop down items are not going to be visible. ...
3
votes
1answer
154 views

Page Object Model: need help with tests that uses more than 1 page object - Appium-Java-TestNG

I have a framework based on POM model. I am able to write test that only uses elements from 1 page but when I need to access elements from another page tests fail because I think it uses the wrong ...
2
votes
1answer
104 views

How can I verify text exist within a table with db using Selenium WebDriver?

Using selenium Webdriver+Java- I am looking for a way to identify and or verify a value in a table. There are more columns in the table, but I am only concerned with the Country column, Also the ...
0
votes
2answers
3k views

Can't find any element using CSS selector with Selenium on Python

I'm running a script on vodafone.co.uk but I can't find any element using the CSS Selector. browser.get("http://freesim.vodafone.co.uk/") browser.find_element_by_css_selector("#frmNew > div:nth-...
0
votes
0answers
12 views

How can I enable variations in Chrome from chromedriver options?

How can I enable variations in Chrome from chromedriver options? Hello, I'm facing a problem with Chrome where when I run an automated UI test with chromedriver, there's issues showing up (such as ...
4
votes
3answers
1k views

What points should be covered in an Automation POC?

Background : We are planning to automate our web application, for that our manager asked for the Proof of Concept (POC). Overview : After studying and analyzing all factors of application, our team ...
3
votes
4answers
8k views

How to check no. of characters accepted by an input field using Selenium WebDriver?

I want to check the validation of an input field that what is the number of character it accepts? Suppose an username field is allowed to accept 15 characters then how can I automate this test?
0
votes
1answer
193 views

Unable to capture the alert in Selenium using Python

I am trying to test a web portal using Selenium and Python. The problem is, I am unable to get around an error, in other words, I am unable to catch the alert. Scenario: Search for a user, if the ...
2
votes
3answers
727 views

Selenium - How to copy entire excel column without using iterator

I'm new to selenium and I'm having following query. Query: Am working on a project where I need to copy 4000 values from an excel in a single go and I need to paste that in the list box of ...
4
votes
2answers
23k views

Selenium Webdriver, C# and accessing rows in a table

There's been other questions like these, but I feel like I'm missing some of the basics, so I'll try asking a potential duplicate question: How do I get/list the contents of each row in a table like ...
0
votes
2answers
316 views

How do you enter data from a jhtml Area element using selenium?

Now in the application that i have to automate, there's a jhtml Area element. This is a sample jhtml area: http://pietschsoft.com/demo/jhtmlarea/. So the jhtml area has two elements for the text you ...
0
votes
3answers
176 views

Sharing static class variables data between two Selenium classes c#

I have two Selenium C# test case classes, ClassA and ClassB. I would like to reuse a static variable VarA, defined in another static non-test ClassC. After ClassA has made a change to the variable, I ...
1
vote
1answer
381 views

How to create a Selenium IE Node that starts on boot?

I've been hitting my head against the wall with this one for a while now. On Linux Chrome and Firefox selenium nodes are fairly easy to setup and start automatically at boot time using docker or even ...
0
votes
1answer
2k views

Running the Chrome Browser headless using selenium webdriver with Cucumber on Ubuntu

I have a setup that runs on mac fine (currently launches browser and uses chromium), what i need to do now though is get this running on Ubuntu 14.04 (Amazon EC2 instance), and have chrome or chromium ...
1
vote
1answer
56 views

Element is not identifed in the second test method

I have a strange behavior : I created Test Class with 2 Test Methods as below. When I call AddLimitedBuyOrderwithRandom in the first method it works fine without any exception, but if I call ...
2
votes
1answer
10k views

Looping through a Table with separate colums and clicking on an item within it

I would like to loop through a list of div classes that is dynamically generated in two columns (fixed), rows (dynamically generated). I would like to select a button on the second column with a group ...
0
votes
1answer
32 views

How to verify laravel default flash messages in selenium?

How can i verify any laravel default flash message in selenium? Whether it displayed or not after the execution ? I can't locate the flash message as it was showing after page load. Providing my ...
0
votes
1answer
41 views

Fetch paid Amount value from iframe

if(ScenarioName.equals("MoveinwithVantivCard")) { driver.findElement(By.id("btnsave")).click(); // driver.switchTo().frame("paymentIFrame"); driver.switchTo().frame(driver.findElement(By....
0
votes
1answer
697 views

Selenium driver.getWindowHandles() is not working while opening new tabs in same browser window

package demo.webtables; import java.util.HashSet; import java.util.Set; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa....
0
votes
2answers
114 views

How Does Test Planning Differ for Manual and Automation Projects?

I am now into automation projects. So can anyone help how the test plan will differ from manual and automation projects.?
3
votes
3answers
372 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 ...
0
votes
1answer
399 views

Unable to tap on Search on android keyboard using pressKeyCode(int) method

I am a beginner in Appium automation. The application I am testing, have this scenario where I need to tap on Search button from the native keyboard. I have tried with pressKeyCode method but getting ...
1
vote
3answers
739 views

how to automate KendoUI dropdown with selenium webdriver and C#

Cannot make it work, need help , I don't know how to automate KendoUI dropdown with Selenium using C#, Sendkeys doesn't work for KendoUI here is my HTML <div style="background-color: #e6e6e6; ...
6
votes
1answer
779 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 at a situation where I need to tap each element in a list. I wrote below code: List allKeywords=driver....
-2
votes
2answers
45 views

How to make a test fail if driver takes long time to look for an element. I am not sure which elements will throw this exception

I am not sure which elements will throw this exception.In general is there any method other than providing - a page load time out , implicit, explicit or frequent wait for a particular element .
0
votes
1answer
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
3answers
3k views

How can I pass parameter in xpath?

I am using Java, Selenium Webdriver and Cucumber for my automation.In my feature file I have below statement : And add a room '<x>' The XML code for selecting rooms is shown in below image : ...
0
votes
1answer
2k views

How to open the app using appium?

I am new to appium, i configured appium with selenium it is working fine I am able to open the browser in my device and able to edit and do all the commands. But unable to open specified app, i gave ...
0
votes
1answer
6k views

org.testng.TestNGException: Cannot find class in classpath: com.facebook.qa.testcases.LoginPageTest

[RemoteTestNG] detected TestNG version 6.14.2 org.testng.TestNGException: Cannot find class in classpath: com.facebook.qa.testcases.LoginPageTest at org.testng.xml.XmlClass.loadClass(XmlClass....
0
votes
3answers
353 views

Launch FireFox custom profile with geckodriver in java

I'm trying to launch a Firefox profile with add-ons in it, with selenium v3.12 and gecko-driver v2.10 and Firefox version 60.0, how-ever it seems that the custom profile is not working. below is my ...
0
votes
1answer
128 views

Error - NotImplementedException Was Unhandled

I am trying to subtract the result of 2 variables and I want to echo the result in Selenium. I am using VS2015 as my IDE. //Obtaining pressure For 2100 hours today driver.FindElement(By.XPath(".//*[@...
0
votes
3answers
453 views

Selenium Java WebDriver Can not Find Element with xpath

I've a question, how can I capture the xpath in the case below? I tried this: driver.findElement(By.xpath("//*[@id='L2_auto_8']/div/a[1]")); and I tried: driver.findElement(By.xpath(//a[@href='/...
4
votes
2answers
810 views

When and how to do regression testing?

I am learning selenium. I am trying to get into more and more automation. Scenario (example): We are working in the agile. 2 weeks of sprint. We have a release after every 3 sprint. In our framework ...
0
votes
1answer
22 views

Switching from inner iFrame to the outter (parent) iFrame

I have an iFrame in another iFrame, I´am able to switch to the parent iFrame and then to the child iFrame, but I´am just not able to switch back to the parent one. Is it even possible to switch up top ...
1
vote
3answers
15k views

How to find Scroll bar xpath?

I am working for a website automation testing. I need to scroll many times. How to find a Scroll bars`s Xpath in a browser ?
0
votes
2answers
31 views

Not able to inspect one of the overlay which disappears in fraction of sec before page loads completely

Once i reset the password through selenium script the confirmation overlay page just remains for 2 sec which i`s not captured by selenium to inspect. Please suggest me how to capture/ignore that ...
1
vote
2answers
1k views

How to validate that bootstrap validation popup message is being displayed with Selenium and browser console?

How do you locate a error message that appears as a tooltip in the browser console? It disappears before I can inspect it. I was thinking the firstname field's error message would be this, but ...
0
votes
1answer
23 views

remote webdriver in Linux

I have the following setup for my selenium tests: Hub machine in Linux. Couple of virtual machines as nodes, Linux and Windows created using Vagrant scripts. If I start selenium node in Linux ...
1
vote
1answer
91 views

Selenium steps not running in order of promise

I'm writing a test to check our ratequote form on https://militaryvaloan.com/va-rates, I've been mostly successful getting it to work however I'm having trouble keeping the event listeners in order. ...
-1
votes
1answer
51 views

How to i find the count of check boxes is selected?

In the UI there are 50 check boxes. If I selected 20 check boxes. How to I find count of 20 is selected?
0
votes
1answer
29 views

how to use assert in selenium python to check my page load time is less than 5 sec?

start2 = datetime.datetime.now() button8 = driver.find_element_by_xpath("//span[contains(text(),'Last Month')]").click() timeout = time.time() + 60 * 2 while len(driver.find_elements_by_css_selector(...