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

Is customization of TestNG reports possible?

Is there any way to customize TestNG reports in such a way that we can add restart test case on failure option. If yes, please help me with solutions.
0
votes
2answers
36 views

How to read and write excel file on MacOS system using java?

I am new to MacOS systems. On Windows systems, we read and write data from Excel worksheets. What about Mac? If Notes is an answer, can you provide me with java code to read and write data from Notes ...
0
votes
1answer
234 views

Selenium WebDriver Code for PeopleSoft Sub Page

I am new to Selenium WebDriver World. I am trying to work on a script to Add a Person in PeopleSoft HCM Application. Basically, On the Personal Data Main page, you first start by adding a Effective ...
2
votes
6answers
189 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
18 views

Not able to run TestNG on Mac using terminal

I am facing an issue that is "How to run testng.xml from terminal of Mac machine"my TestNG version is 6.8
2
votes
4answers
18k views

WebDriver: navigate to new browser window

How do I open a new browser window in Selenium WebDriver? I'm using C# client drivers, but if you know with any language, I should be able to find the correct class/method in C#. On Stack Overflow, ...
0
votes
2answers
51 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
533 views

Running Selenium webdriver scripts in android device (Samsung galaxy tab)-Portrait mode

I have been stuck in an issue while running selenium webdriver script in android device -Portrait mode. Script is running successfully in landscape mode but when we run the same script in android ...
0
votes
0answers
32 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 ...
2
votes
2answers
3k views

Selenium Webdriver code in Java to search hidden Objects in Web Browser

I am trying to create a Selenium Web driver java code where I can find all the hidden objects on the webpage and can be accessed. I want the count of all those hidden objects. Which property I can use ...
0
votes
0answers
27 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. ...
3
votes
1answer
103 views

Eclipse is automatically running unwanted selenium tests

I have two test files (lets say they're SomethingTestA and SomethingTestB). Inside SomethingTestA, I have a bunch of mini smoke tests methods, like so @Test public void testCreate() { ... } ...
0
votes
0answers
28 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
3answers
5k views

JavascriptExecutor is not identifying the button to click in Webdriver

I have this HTML <div class="btnContr"> <input type="button" onclick="return cancel();" value="Cancel"/> Below is the xpath identified, using this xpath, I am not able to click on ...
1
vote
2answers
196 views

Selenium Webdriver runs in root but not in non-root account

I have this problem that when I run in root account it works properly with the test cases returning as expected. But in a non-root account it keeps giving me an error. Thanks in advance if you are ...
0
votes
3answers
2k views

Selecting an item of a drop-down menu with Splinter lib (Python)

I am looking for a way to select an item in a drop-down menu in python with Splinter (very similar to selenium I guess) : <li class="option1" rel="1158"> Option 1</li> <li ...
0
votes
1answer
84 views

Help finding child class with cssSelector syntax

How can I find this element by css this is what I have so far. driver.findElement(By.cssSelector(".simplecolorpicker > span[title*=#ff8081]")).click(); Here is the image of the html:
1
vote
1answer
88 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
2answers
39 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
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; ...
6
votes
2answers
4k views

How can I send the action “Ctrl” + “Alt” + “Double Click” to the browser

I am writing automated tests for a site at work and we have certain screens that when we send a specific set of keystrokes, a section of the page will become visible and allows us to see information ...
0
votes
3answers
5k views

How to Implement Page Object and Page Factory Pattern in Selenium Webdriver?

I am a beginner in learning selenium Webdriver. I am not able to understand how page object and factory models works and how it can be beneficial? Kindly help me explain it with detailed explanation. ...
0
votes
1answer
65 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 ...
2
votes
1answer
290 views

PHPUnit Selenium2TestCase BadMethodCallException

I have installed selenium-server-standalone-2.33.0.jar, phpUnit, selenium extension for phpUnit. This test runs ok: $this->url('/'); $this->assertEquals('my title',$this->title()); But ...
2
votes
2answers
123 views

Order in which options are returned by getOptions() in dropdown box(Select Class) in Selenium WebDriver?

When we get options of a dropdown in Selenium Webdriver the following way Select dropdown = new Select(driver.findElement(By.id(dropDownId))); List<WebElement> options = ...
1
vote
1answer
323 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
831 views

TypeError: Error when calling the metaclass bases module.__init__() takes at most 2 arguments (3 given)

I'm ne to coding and python. Not sure where exactly I should be looking to fix this error. from UIMap import tomcat8LoginPage, ...
0
votes
1answer
281 views

Unable to run Appium Version 1.3.6-(Ophiuchus) on Yosemite for Testing Android App on real device

These are my settings: My SDK path: -/usr/local/adt-bundle-mac-x86_64-20140702/sdk My APK path -/usr/local/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/Setmore.apk Given Package name, Launch ...
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 ...
-4
votes
3answers
2k views

Outlook Mail testing

I want to know how to use outlook to test mails (the mail has a link that needs to be clicked to approve or deny the request). How do I write this in Selenium Webdriver in c#. I am quite new to ...
0
votes
2answers
254 views

Keys.ARROW_DOWN does not select an item in the 'Select Box'?

I have a select box which has 3 values in the drop-down. When I click on the select box and then further use click() on the value item , it works fine. but when I use Keys.ARROW_DOWN its displays the ...
2
votes
1answer
426 views

Selenium - What Is The Best Way To Mock Browser Time and Time Zone?

I like to run Webdriver tests with altered time and time zone. I see two approaches ahead: 1.) Using a mocking library like SinonJS or TimeShift.js. 2.) Using system libraries like ...
1
vote
1answer
88 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 ...
0
votes
2answers
87 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 ...
1
vote
4answers
3k views

Unable to locate element in a dropdown

ul class="appt-dropdown-menu"> <li id="service-slot-blocker" class="slot-blocker-holder"> <li id="service-05b41399015375913"> <code class="light-blue"></code> <span ...
2
votes
1answer
245 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
52 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 ...
1
vote
0answers
44 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 ...
1
vote
1answer
474 views

“session has expired” error - after clicking a button with webdriver in IE8

After clicking a button in my application with webdriver, it gives me “sorry..your session has been expired” in IE8 and i am unable to proceed. But I am able to do it manually. Now to proceed with ...
0
votes
3answers
62 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 ...
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 ...
6
votes
8answers
10k views

What Concepts of Java do i need to learn to use Selenium Webdriver?

I want to learn Selenium WebDriver automation using Java. I have done manual testing before and want to learn automation. I just know the basics of Core Java. Could you please suggest me the Core ...
0
votes
1answer
46 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 ...
6
votes
4answers
2k 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 ...
1
vote
2answers
270 views

Blurred screenshots with Selenium Webdriver

Please refer to the link to see what kind if screenshots I get - http://goo.gl/uDIyf3 instead of http://goo.gl/BQy1hI . Not sure what could be wrong here as the same code has been working for me on ...
0
votes
1answer
229 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 ...
12
votes
11answers
21k views

Load Testing, Selenium Vs Jmeter Vs other tools

I have been using Selenium/Webdriver for functional testing in a grid setup. We are in the process of transitioning to a Solr based search service. I already have Solrmeter for load testing the ...
0
votes
3answers
94 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 ...
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 ...