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

0
votes
0answers
4 views

running Testngtest on mac machine using terminal

hi everyone i am facing one problem that "how to run testng.xml from terminal of mac machine"my testng version is 6.8
0
votes
0answers
27 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, so the ...
0
votes
2answers
41 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
0answers
24 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. ...
0
votes
0answers
26 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 ...
0
votes
2answers
34 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
1answer
64 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 ...
0
votes
0answers
15 views

Where can we see @Test(description=“test description”) in report?

I am unable to see the my test description in report. I use this annotation for it: @Test(description="TestCase Description") Where can I see the above description of my test case in the final ...
1
vote
0answers
43 views

What language/protocol do web browsers use for accepting automation requests?

The WebDriver API allows browsers to be automated, such as for end-to-end testing. Specific implementations exist, such as the standalone ChromeDriver or InternetExplorer Driver executables or the ...
0
votes
2answers
76 views

Setting TestNG test case result as PASS/FAIL as per my requirement

I have one requirement, I need to read the test data from the excel sheet and after the test case execution I need to write in to excel sheet as PASS/Fail/ Skip. I have used TestNG framework,Below ...
0
votes
3answers
61 views

How to find element with dynamic names in selenium webdriver

My code: <input type="text" placeholder="Label" class="other[] form-control" name="projectsurvey[1438590696705][choosekey][1438590696705][]" value=""> Where name ...
2
votes
4answers
150 views

Test management tool for Selenium webdriver?

My company recently began migrating from using QTP to Selenium webdriver. We are looking for a test management tool similar to Quality Center (what is QTP primaly for) that would work well with ...
0
votes
0answers
20 views

Search Dom for multiple elements using explicitwait

Hi I'm using selenium webdriver and when I click to a certain website I want the webdriver to return a list of elements with similar classes, in this case a list of elements that, once clicked/toggled ...
0
votes
0answers
16 views

On different OSes, what standard files can I assume exist which can be uploaded?

One of my webdriver testcases does a file upload to the website, in order to test that attachments can be added to message posts. This is implemented easily enough with a single line of code: ...
0
votes
1answer
51 views

Internet Explorer and proxy PAC file problem

I'm having trouble with making IE use proxy pac file. But it works ok with Firefox and Chrome. What I do: 1) Prepare proxy config proxyPacFile = "file:///" + proxyPacFile; Proxy proxyPAC = new ...
0
votes
2answers
51 views

Verify two elements exist next to each other on a page

I'm trying to verify that an element exists on a page next to another element. I'm using Selenium Webdriver with Python bindings, but can't figure out how to do this...i'm a Selenium/Python noob BTW. ...
1
vote
1answer
124 views

Mocking HTTP reponses in Selenium Web Driver using Python

I am currently experimenting with the Python version of Selenium Web Driver. Using the driver has been straight forward so far but I have been struggling recently with the issue of mocking HTTP ...
0
votes
1answer
45 views

Clicking on java script generated dynamic elements using Remote Web Driver in selenium

I have one web page, all the elements on that page are generated by java script code. I want to click on one of the button on that page, I was able to do this using the chrome driver,FF Driver but ...
2
votes
2answers
166 views

Verifying if an image Is displayed on a webpage

I have read that there is no "sure shot" way of knowing that an image is loaded or displayed on a webpage using Selenium. I want to know the reason behind it, as to why this is completely not ...
2
votes
1answer
102 views

Selenium Webdriver: How can I getText() if there's another text within div?

I have the following html: <div class="dialog-components"> <h2 class="dialog-title"> <div class="help-link"> <a href="http://google.com">Helps</a> ...
0
votes
3answers
91 views

PageObject. Should I initialize all pages at start or not?

Java + Webdriver + PageObject. I have a question about pages organization. At this moment I have class which contains all pages in the project. At start all pages are initializing, and it looks like ...
1
vote
1answer
87 views

Running selenium scripts through web

I have developed a web page which takes all inputs for test cases such as: locators, input data, urls to open, etc. I run the page in tomcat server. Whenever I'm executing the test case with that web ...
0
votes
0answers
44 views

How to get window ID with Selenium / WebDriver

Can anyone please suggest me how to use Set and Iterator concept to get parent and child window id? package pack1; import java.util.Iterator; import org.openqa.selenium.Alert; import ...
1
vote
1answer
85 views

Automating Chrome on Windows 8.1 with JavaScript using Selenium's WebDriverJS

I'm automating Chrome on Windows 8.1 with JavaScript using Selenium's WebDriverJS. 1) To get started with WebDriverJS for Node, I downloaded a copy of the ChromeDriver and selenium-server-standalone ...
1
vote
1answer
96 views

Can I email the testNG reports directly through selenium?

I want to send the testNG reports directly through mail to the stakeholders once its complete execution. What is the best possible way for it?
0
votes
2answers
192 views

Want to build data driven framework with selenium webdriver [closed]

I have knowledge of selenium and want to implement data driven framework. So, I need basic knowledge for this at a starting level so that I can proceed in my organization
1
vote
2answers
42 views

Webdriver Java : How to identify two identical Ajax Control using xpath

WebApplication has Calender Ajax Control twice on same page. I cannot use id's as ids get generated by Ajax call dynamically . So identifying it using xpaths and classnames. I can identify First ...
0
votes
0answers
89 views

Error when clicking element::: org.openqa.selenium.WebDriverException: d is undefined

Getting following error when clicking. Scenario: In application I have collapsed button on expanding that , its submenu are listed and clicking on sumenu open that particular page. ...
0
votes
3answers
64 views

Not able to switch on newly opened frame

Not able to switch on newly opened frame Below are the firebug details for my opened frame <html xmlns="http://www.w3.org/1999/xhtml" style="overflow: hidden; height: 100%; border: medium none; ...
0
votes
0answers
44 views

WebDriver : selection is not working properly

I want to select Manage Customers & Projects but with below code 2 options i.e. Manage Customers & Projects and Manage Tasks both are getting selected. Not getting whats going wrong : ...
0
votes
0answers
27 views

Selenium Webdriver : Selection is happening twice

I want to select only Manage the customers and Projects . But did not getting , whats going wrong with below code. It selects both Manage the customers and Projects and Manage Tasks My code: ...
2
votes
1answer
226 views

How to locate or write Xpath for an element of an Hybrid app which has only class and no other attribute

I am new to mobile automation and Appium and unable to find a way to get xpath or locate an element, getting following node details in uiautomatorviewer: index:0 text: resourceid: class: ...
0
votes
1answer
43 views

Efficent way of checking if Element is Not Present

I currently use TestNG's assertFalse to make sure a particular element is Not shown when not logged in on a site. eg assertFalse(isElementPresent(PageElements.PDFLinkText),"PDF link present when not ...
1
vote
2answers
33 views

Look for a program that systematically scans an entire html document.

I am helping my friend with some medical records verification. In short, I have to through hundreds of medical records and pinpoint certain ones for verification. I want to be able to search through ...
1
vote
1answer
314 views

Handle the File Upload dialog in Protractor for IE11

I know the default answer to handling explorer.exe is to use AutoIT, but AutoIT utilizes Java Runtime to use the exported .exe to upload the file and close the dialog. My tests are all in Protractor ...
0
votes
1answer
368 views

how can i switch to the new instance of browser in python selenium webdriver [duplicate]

i am using selenium webdriver with python, i am not able to find a way in python by which i can switch the webdriver to a new browser. My web application have multiple links and buttons Clicking on ...
0
votes
1answer
50 views

Blank screenshot with WebDriver

Im not sure why, but ever time my screenshot is executed, the images are saved as blank. heres the code: public void screenshotOnError() throws IOException { WebDriver driver = new ...
0
votes
1answer
40 views

Getting NPE on screencapture with an error

I am currently setting up PageObject with PageFactory Automation tests. I currently have a screenCapture.java and I try to call the method within the screenCapture when there's an error. Here is the ...
0
votes
0answers
30 views

Unable to get testng report one by one; Both reports are coming simultanously

I have two testng.xml files. I did entry for these two testng.xml files in pom.xml like this: <suiteXmlFiles> ...
2
votes
4answers
109 views

Selenium WebDriver not properly waiting

I am trying to download a file from a website using a webdriver. But my browser is shutting down before it was able to properly export. I inserted a wait() before I call dispose() but it is not ...
2
votes
1answer
490 views

How FluentWait is different from WebDriverWait?

How is the FluentWait is different from WebDriverWait? I am using WebDriverWait having the polling interval set to : 500 miliseconds. Still, WebDriverWait returns after some delay (i.e. 2 - 3 seconds ...
6
votes
4answers
1k views

How can I work with file uploads during a Webdriver test?

This is a canonical question, intended to provide a comprehensive answer to many related questions During the course of a Webdriver test, I want to upload files. However, this opens a native file ...
0
votes
0answers
45 views

Protractor is showing the same stack trace for different errors

I am using protractor to test and angularJS application. Most of the errors I am getting are showing the same stack traces related to promises, when this is not where the actual error is occurring. ...
0
votes
1answer
291 views

How to connect node to hub that are in different networks

If I use case when hub and node are on the same network - here is how I do this: launch hub: java -jar selenium-server-standalone-2.45.0.jar -role hub -port 4444 launch node: java -jar ...
0
votes
1answer
224 views

Python selenium - how can I loop a function to make 100 Copy accounts using different emails

How can I loop a different string into the email field, or a variable without actually having to make a list that consist of 100 different emails. For example is there a way i can send money@qa.test ...
0
votes
2answers
133 views

Unable to launch firefox with Selenium Webdriver

I'm starting to build a set of simple automated tests. I have: WebDriver driver = new FirefoxDriver(); driver.get("http://www.yahoo.com"); On the first line (where I instantiate the WebDriver), I ...
2
votes
2answers
102 views

How do I copy substring to array of strings

WebElement ELR = driver.findElement(By.id("trades-list")); List<WebElement> list = driver.findElements( By.xpath("//*[contains(@id,'trade-summary-92')]") ); String[] tradeId = null; for(int ...
0
votes
1answer
64 views

Max no.of records can we test in selenium by using data driven framework

I have one scenario say example In shoppong cart web application , in the ceckout page while selecting the address,I have two drop downs which are states and city. we needd to select the state and ...
0
votes
0answers
71 views

Web driver gets blocked after getting a second level popup (popup inside another popup)

I'm facing an issue when application I'm testing is opening a second level popup (I mean, a popup that rises another popup). I'm using Selenium for Java, version 2.42.2, with IE Driver. My code ...
2
votes
2answers
151 views

Opening Multiple windows of firefox in the same test case

My question might sound very odd to you all but just wondering if this is possible for us. Okay so I have written 10 cases for my login page in selenium using C# .net. But they take quite a lot of ...