WebDriver is a tool for writing automated tests of websites. It aims to mimic the behavior of a real user, and as such interacts with the HTML of the application. Rather than running as a JavaScript application within the browser (with the limitations this brings, such as the "same origin" ...

learn more… | top users | synonyms

1
vote
2answers
38 views

What is the Purpose of the autoit tool in selenium?

Using selenium we can upload a file. So then what is the purpose of the autoit tool in selenium? driver.findElement(By.id("image")).click(); username.sendKeys("D:\Images\img.jpg"); The above code ...
3
votes
2answers
60 views

Actions to search item and number of methods

I have questions about clean code. I'm writing a test in Java selenium page factory. I'm a beginner. I have two "actions", input text into search field and click button search. Now the question is, ...
1
vote
1answer
15 views

How to store cookies from Webdriver Sampler in HTTP Cookie Manager - JMeter

I have created Thread Group that contains : User Defined Variables (FedAuth_v,FedAuth1_v) HTTP Cookie Manager (FedAuth - value:${FedAuth_v} and FedAuth1 - value:${FedAuth1_v} Then i Have jp@gc - ...
4
votes
0answers
106 views

Using Selenium Webdriver For Firefox Testing

I have been doing research into implementing Selenium Webdriver (currently version 2.49) for testing on Firefox. Currently I am capable of testing Chrome with the framework, but would like to extend ...
1
vote
2answers
64 views

Unable to select dropdown in selenium which is assigned with div tag

so plz help me to resolve this issue.i know how to do dropdown using "select" but in my site it is inside div tag . plz help me to reslove this issue. HTML Snippet : <div ...
0
votes
0answers
42 views

How to organize code in automation framework?

I am trying to figure out most readable way to organize my code (with POM) So far I have split out the following: Pages (methods for the specific pages) 'GoTo' pages (I don't need it but ...
1
vote
1answer
39 views

Chrome Webdriver click function timeout when opening two simultaneous windows

I have an issue using Chrome WebDriver on a Node Webkit Application, when I click an element (it will open two windows at the same time) driver shows a timeout exception on Click function. I tried ...
0
votes
1answer
59 views

Why is CodeCeption acceptance test unable to access web page through webdriver?

I'm trying to build a CodeCeption acceptance test environment for Joomla. To make it easier to reproduce the tests on any developer's machine, I want to provide a Docker based environment. I'm ...
1
vote
1answer
59 views

Unable to perform data driven test using Apache POI

The line marked in star is giving error when the test is run in TestNG Guys tell me what am I doing wrong in this. I have attached the excel with 3 rows and 3 columns in 1st sheet. Data lib code- ...
1
vote
2answers
53 views

Selenium Java WebDriver Can not Find Element with xpath or cssSelector

I can't find this element using selenium java webdriver. I have a before class method that loads the firefox driver and set the WebDriverWait. Then I have a test method to look for the elements with ...
0
votes
0answers
16 views

Help Finding image in Sikuli X in Java

I am having an issue trying to find an image on the screen, I tried doing it in two different ways and it doesn't seem to work for me. I am trying to do this with Appium running on IOS simulator which ...
2
votes
1answer
55 views

Changing frame problem

I have a problem with switching frames in Selenium. I'm using Firefox Webdriver. In the first step I'm switching to Masterpass_frame then I click on a button to force the frame to reload. Then I ...
5
votes
1answer
199 views

How do I verify a Link URL using Selenium Webdriver / TestNG?

I'm trying to do an assert to make sure a correct XMLHttpRequest is made. I know that I can get the exact Request URL from the Developers Console -> Network tab -> XHR tab's general information ...
1
vote
3answers
118 views

Webdriver auto-filtering results

Navigate to the custom elements example, open a console and type in document.body.getElementsByTagName("*").length - you should get 6 returned as the result. Using webdriver, try (def d ...
1
vote
0answers
42 views

Why a PhantomJS grid node is defined differently compared to other browsers

I am trying to set up one of my Selenium Grid nodes using PhantomJS. (The rest of the nodes are all working fine with Firefox browsers) Now generally, when we configure a node, we launch a ...
2
votes
1answer
80 views

Find custom elements in webdriver

Why aren't custom tags supported yet in Selenium WebDriver? I realise the W3C web components proposal is still under review, but browsers are already implementing them widely (angular apps come to ...
0
votes
3answers
55 views

Unable to enter the text in a text box

I am trying to enter the text in a textbox, but I am getting an error as follows org.openqa.selenium.InvalidElementStateException: Element must not be hidden, disabled or read-only Anybody can help ...
0
votes
1answer
68 views

How do you monitor Selenium Grid?

I havea grid of 18 nodes testing our application. Currently I have written a rest-api, which returnes the CPU information on the machine through a java servlet. It's working, but it is not nice. How ...
1
vote
1answer
90 views

Can't click a button [Python + Selenium]

I'm writing a program to automate some actions on a website using Python and Selenium and I need to click a button with this code: <button class="button login" data-popup="login">Change ...
4
votes
3answers
80 views

Test, Improve performance of WebDriver Automation framework

I have designed a hybrid(keywords and data in same excel sheet) framework using WebDriver+Java+TestNG+Maven. I am using PageFactory, Singleton Pattern . I am using different type of HTML locators in ...
0
votes
2answers
106 views

I get an exception, “Element is no longer attached to DOM” when I run my code, but In Debug mode, it works fine. I'm using Java and TestNG

In the webpage I'm testing, there are 3 options in a drop down and on selecting each option, rows in a table gets populated. I'm just trying to locate the table value through xpath and I am getting an ...
0
votes
3answers
48 views

Webdriver + servlets, do they add up?

I was recently interviewed for a job as a developer in test, and the interviewer asked me if I had any previous experience with servlets. This questions was totally odd because they don't use ...
0
votes
4answers
64 views

Escape key for Safari using Selenium

I am using Selenium webdriver (Java) and ran into a problem. I made the method, public void escape() { Actions action = new Actions(driver); ...
2
votes
3answers
81 views

What proportion of tests cases should be automated via Selenium Webdriver? [closed]

I work with e-commerce websites and I am wondering how much of the tests should be automated. I plan on automating the login and check out functionalities but what about clicking links to navigate ...
1
vote
4answers
110 views

What is a good automated tester interview technical test scenario?

We have a role which requires an automated tester. Mainly this will take the form of writing automating tests using Selenium Webdriver written in Java. I am trying to develop a technical test ...
1
vote
1answer
189 views

Selenium: How to access the same session in a new window?

I have search throughout the internet but none of the answers I found have a clear solution. I am using selenium webdriver with Java. My test needs to verify when you save your login information ...
-1
votes
1answer
526 views

How to handle multiple columns of Data from Excel using Apache POI for Selenium WebDriver

I am new to Selenium WebDriver and I am automating an end to end test. My doubt here is, all the data for the test is stored in an excel file which contains more than 15 columns of data. Each @Test ...
-1
votes
3answers
177 views

Handling the unexpected popup ad's in website

I am currently working on Automation project for E-commerce site . In some pages unexpected popup's(ex:ad's) are displaying .Because of that my script was failing by throwing exceptions like ...
-3
votes
1answer
129 views

I'm getting error while executing selenium programs

import java.io.IOException; import org.apache.bcel.generic.Select; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import ...
2
votes
1answer
264 views

Selenium WebDriver sometimes fails to connect to the browser when running tests in headless mode

I'm experiencing timeouts when Webdriver connects to the Chrome browser in headless acceptance tests setup on Linux. I'm using the following setup to run the tests: Vagrant machine with Ubuntu ...
1
vote
1answer
51 views

Setting up central system to run selenium scripts

Currently I am working on automation project. I have completed all test cases and executing in my local. Now my Project Manager wants to be execute it in a server so any one can access and execute the ...
2
votes
3answers
79 views

Is this a good test for a selenium developer?

My boss has given me the assignment of interviewing one of the new automation engineers. The only task left is the technical one, and I have been thinking about a good test that I could give him. I ...
0
votes
2answers
174 views

Cannot access elements in iframe

I cannot access elements inside of an iframe, I have tried the call: IWebElement iframeSwitch = driver.FindElement(By.XPath("//iframe[contains(@id, 'contentIFrame1')and contains (@title, 'Content ...
3
votes
5answers
250 views

What should I learn next as QA

I have been working as a software tester for the last 4 years. I have the following skills and day job experience: 1 - Manual Testing of websites & Mobile Applications. 2 - Automation using ...
3
votes
3answers
128 views

Webdriver - Page Object Validator

For a while I wrote test for our web application using the Page Object framework. But test after test, I notice, I always wrote the same kind of assert. MyPage page = navigateToMyPage(); ...
1
vote
0answers
81 views

Loading large amount of data into cucumber / selenium via yaml files

I'm somewhat new to automated testing and this is a general testing design question based on my current project: A client has a question/answer tool in Excel that is being ported over to a ...
2
votes
1answer
123 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 ...
0
votes
0answers
35 views

How to construct dynamic XPath based on the data provided in the excel sheet?

<input id="ddcl-selInd-i9" class="active" type="checkbox" tabindex="0" checked="checked" index="9" value="03"/> <label class="ui-dropdownchecklist-text" for="ddcl-selInd-i9" style="cursor: ...
1
vote
1answer
106 views

Using tagged hooks to run tests with different browsers

I've looked at resources like here and here, but these solutions are not working for me. What I want to do: without involving much heavy machinery (unless I have to) and without using a third-party ...
4
votes
1answer
310 views

Using xpath to confirm <h4> text with a <strong tag> in the middle

I'm using the Java Selenium WebDriver implementation. I'm searching for a string literal in an tag which has a tag in the middle, i.e. <h4>Some regular text <strong>followed by strong ...
2
votes
2answers
123 views

Verifying a Caraousel should rotate after clicking - Selenium Webdriver

Is there an automation method, via Selenium with Java, that can verify if a carousel rotates after clicking it? I highlighted the Right arrow as Red box which should rotate after clicking it.
0
votes
1answer
158 views

Selenium : Listen EACCES

I'm trying to test my application using Selenium, but sometimes it counters LISTEN EACCES. Here is the error report j:\Projects\coba\node_modules\selenium-webdriver\lib\goog\async\nexttick.js:39 ...
0
votes
4answers
89 views

Can anyone help me out in getting the tooltip

I am unable to get the tool tip from a tag. The snippet of the HTML is <table class="tiger-stripe" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr ...
0
votes
2answers
160 views

how to read and write file on mac system using java? [closed]

hi everyone i am new to mac system, on window system we read and write data from excel sheet what about mac? if notes is an answer provide me a java code to read and write data from notes file.strong ...
0
votes
1answer
69 views

Expecting a popup upon closing the browser

I am expecting a pop-up upon closing the browser. For example, when you are shopping and you have items in cart and in the middle of the checkout process, you wanted to close the tab/browser, at that ...
0
votes
2answers
653 views

how to launch Chrome using remote webdriver

I have set up 2 PCs as selenium hub & node.Now, I am trying to browse a URL in that node, from a console app that runs in the hub. But there is an error when initialising the browser.Both PCs run ...
0
votes
1answer
176 views

Selenium hangs for modals in firefox browser for very long time

After opening the modal window or modal overlay , performing any click operation within the modal takes very long time. It doesn't throw any exception neither does the execution stops. ...
1
vote
0answers
51 views

Both machine- and human-readable data-driven test cases

At this moment I write my test cases in Markdown. So they can be version-controlled (I use Git). From Markdown I can render the sources into either HTML or PDF, it can be automatized through a shell ...
1
vote
2answers
146 views

Running application doesn't execute any code but opens a new window

I am trying a build an automated testing framework, using Selenium WebDriver to simply login a website. However, when I run the following code, the only thing that happens is a new internet explorer ...
0
votes
2answers
143 views

What exactly should be in a page object?

I'm having a bit of a hard time designing my page object. What sort of methods should be in there? Should I put wrapper methods for driver functionalities (e.g driver.findElement(...)) or shall I ...