Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

5
votes
6answers
19k views

Desktop Application testing using selenium

Is it possible to test desktop applications using selenium? Suppose we have a simple application like gtalk. A desktop application, can we automate that application with selenium.
1
vote
3answers
31 views

How to identify element with knowledge of partial text for any tag (eg. div,span etc.) contains?

My source goes like this: <div name="something" id="something"....>IPS125</div> the number after IPS always changes. So I need to give the identification attribute as partial text "IPS"....
0
votes
1answer
56 views

Test Scenario for cookies in selenium webdriver

I want to work with cookies in my project, I don't know what will be the Test Scenario and Test Cases for it. Please help.
0
votes
1answer
28 views

How to read data from excel sheet using Codeception for Acceptance test

I am creating a framework to test a website. For that, I am using codeception framework and writing acceptance test. But I want to read the data or values (lets say for login and password) from an ...
0
votes
1answer
58 views

Java code inside a test case

In my code the daily emails generated by java code. Is it possible to write pure java code inside a Selenium IDE automation test case?
3
votes
4answers
196 views

In automation testing do we need to write only positive test cases?

I am currently working on automation project along with another guy. He prepares a test case for the automation and I implement it. Here is my question, generally we use to write test cases for ...
0
votes
1answer
17 views

StaleElementException - After using navigate().back()

I'm trying to automate a testcase, where in there are around 30 links in a page. All these links will lead to a new page. And depending upon on a value in the new page, I need to either proceed or ...
12
votes
6answers
16k views

Which locator do you use with Selenium: CSS or XPath?

I have heard that, when using Selenium, the CSS Locator has better performance than the XPath Locator. Which Locator do you use in your tests? Have you seen a great performance improvement when ...
2
votes
3answers
3k views

Selenium Web Driver Drop Down List Testing With Div tag in java

I am new to automated testing with Selenium Web Driver I am not able to work out how to test drop down lists without using the select command. I tried using xpath, select by id, class name, css ...
1
vote
2answers
110 views

CSS locator for body text between span tags in selenium

How do I build a CSS locator for the "Add Photos/Video" text between the span tags. I need to perform a click event on this element.
0
votes
1answer
41 views

How to execute a Selenium Java test using batch file?

I have created a batch file containing Java file locations : "% C:/location..." Now , when I double click this file, it opens up eclipse with this java class inside. What I want is that this file ...
1
vote
4answers
2k views

Selenium, monitor network, captureNetworkTraffic command not available [duplicate]

I need to know if an application is requesting one beacon via an image or XHR request. Manually I test it via the network tab in FireBug or monitoring the proxied requests in other browsers... ...
0
votes
0answers
20 views

Getting a stale element exception (Selenium - Java)

I am using Selenium via Java. I am running into a stale element exception and I can't seem to identify the issue. I am interacting with a carousel (see image below). I have placed all the vehicles, ...
0
votes
1answer
112 views

Select multiple options and selection values will come from Excel

What I am trying to do is select multiple options from this example site while holding CTRL http://www.htmlcodetutorial.com/forms/_SELECT_MULTIPLE.html The multiple selection values would come from ...
15
votes
4answers
16k views

Is there a captureNetworkTraffic implementation in Selenium 2 via webdriver?

If yes, how is it called, or where can I find more info about it? (I'm not talking about using WebDriverBackend.) If not, what alternatives are there?
0
votes
1answer
132 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 ...
5
votes
3answers
361 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
1k views

Unable to open Chrome WebDriver in another language

I'd really like to write a Selenium WebDriver test that verifies text is localized. The localization code bases the strings it displays on navigator.language (or navigator.userLanguage for IE). I ...
3
votes
2answers
70 views

How to locate an element which is inside the iframe?

I'm new to automation testing (I'm using TestNG framework and Java language) I'm having trouble in locating an element which is inside iframe. WebElement iframeSwitch= driver.findElement(By.id("...
4
votes
1answer
50 views

Selenium Webdriver : parent login window closes after login and child window opens

I have a test case with following scenario: 1) Navigate to website. 2) Enter Login Credential. 3) Click on Login. After login in my application, login window is closed by system and new child ...
1
vote
3answers
178 views

Check if dynamic objects are loaded with Selenium

I'm having a problem with Selenium2 using Firefox version 39.0 and Firefox webdriver while testing a page based on Apache MyFaces Trinidad 1.0.6. When I imitate press on CheckBox, TextBox becomes ...
0
votes
1answer
3k views

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

I'm new to coding and Python. Not sure where exactly I should be looking to fix this error. from UIMap import tomcat8LoginPage,tomcat8urls,competitors class test_Competitors(unittest): def setup(...
0
votes
2answers
5k views

How to handle sub child windows(more than 3) using Selenium Web Driver with Java

I am using Selenium Webdriver with Java, and I need help handling sub child windows. I have to handle four child windows. Main window- Child window- Grand child - (to reach 5 child windows) I ...
1
vote
1answer
70 views

Failed to connect to Safari driver through Selenium Grid

Getting the following exception when trying to run the selenium tests on Mac- Safari using Selenium Grid. I could see the safari browser on Hub console, but when running the tests getting the ...
6
votes
2answers
169 views

What are the advanced tools/technologies used in Automation testing? [closed]

This is the very interesting question asked to me in 2nd technical round of interview. I have told him about advanced automation tools like- Selenium, Appium, Selendroid, Sikuli. Is there any other ...
1
vote
3answers
202 views

Unable to select text from dropdown - Gmail.com Month Dropdown

Im also facing the same error. Unable to select Birthday, Gender & Location in gmail signup page. I'm using Selenium Webdriver. Please find the below code for birthday. new Select (driver....
0
votes
3answers
50 views

xpath - element is not located even when I construct the xpath

element is not found //HTML Code <input type="text" maxlength="61" style="width:185px;" value="" name="name73652d80" onblur="fieldTrack(this); "/> input type="text" onblur="fieldTrack(this);" ...
8
votes
3answers
45k views

How do I work with dropdowns in Selenium Webdriver?

This is a canonical question, intended to provide a comprehensive answer to many related questions I understand the basics of working with Selenium Webdriver; I can navigate to pages, click buttons, ...
0
votes
2answers
735 views

I want to select the value from the dropdown

I am testing www.paytm.com In that I have filled in the mobile number but I am not able to focus and select the mobile operator which is present in the dropdown just after the phone number section. ...
2
votes
2answers
441 views

How can I bring Chrome browser to focus when running a Selenium test using ChromeDriver on Mac?

When executing a Selenium test with ChromeDriver, I would like to bring the test browser into focus to see the actions taking place. The way I am able to do that now is by manually clicking the ...
0
votes
0answers
36 views

WebDriverWait until ExpectedCondition ElementVisible

I am creating an automation test framework for Selenium test using Page Object Model and Pagefactory. The website I am testing can create new pages that a person can write content to which is then ...
1
vote
2answers
78 views

Is my website test approach comprehensive enough? [closed]

I am working on a test automation project for a webpage portal. What I want to achieve is: Perform a HTML encoding conformance test; I have noticed that there are a number of missing tags, un-...
0
votes
1answer
60 views

How to fail a test based on error status codes in integration tests?

We have a bunch of jobs which are basically running different Selenium/nose-backed tests in browser. Now what we want is that, any of these jobs should be considered as failed if any 404 status is ...
1
vote
2answers
590 views

Selenium: Select 2nd item by both class and with certain text?

I am creating some test scripts using Selenium WebDriver in C#. The AUT contains a left menu in which the position/ordering of the links depend upon the 'User Preferences' and a lot of factors/...
0
votes
2answers
202 views

Selenium Drag and Drop with non visible Element

I've got a problem with drag 'n drop with elements in lists which are not visible at loading. When I scroll to the element I can click it or move the mouse over it but I am not able to perform a drag ...
0
votes
2answers
128 views

Retrieving xpath from stored webelement variable

I am using page object model. Here is xpath that I have written for Heading of the page and stored it in the heading webelement variable. @FindBy( xpath = "//div[@class='page-title category-title']")...
4
votes
2answers
81 views

Selenium WebDriver Spicejet website automation?

I am trying to automate spicejet.com website, but the thing is I am not able to access the dropdown values using select as the dropdown values like destination, source etc are not in Select Option="...
0
votes
0answers
16 views

How to select an element from bootstrap menu using Webdriver Selenium with c# ? The Menu drop down shows up on Mouse Over

Import Leads How to select an element from bootstrap menu using Webdriver Selenium with c# ? The Menu drop down shows up on Mouse Over
7
votes
4answers
2k views

Running tests in parallel using Jenkins Grid plugin

I have Jenkins 1.499 running Watir-Webdriver tests on a Windows 2008 (64bit) server alongside the Grid 2 standalone server (and Jenkins Selenium Grid plugin). I can run my tests through the ...
0
votes
2answers
56 views

Parallel Testing with Selenium Grid - Static classes have driver issues

I am currently working on an automation project. I have the project itself complete. However, I am now integrating Selenium Grid into my project to run my tests parallel on different browsers e.g (...
0
votes
0answers
13 views

Sweet alert malfunctions in combination with Selenium's browser.click()

I have a swal: swal({ title: 'Success', text: 'Something', type: 'success', closeOnConfirm: true },function(){ $("#somethingModal"...
1
vote
3answers
92 views

Access webelement in Selenium webdriver

Have to inspect element 8. When click the element 8 on webpage.It should redirects to next page <td class="text_overflow-1"> <u> <a targrt="_parent();" href="subscriberall.php?key=138"&...
2
votes
3answers
11k views

How to run all Selenium test cases via batch file

I am a noob in Java and automation so please bear with me if I get the terminology wrong. I have a class file that can open a browser and navigate to google.com and then closes the browser. There’s ...
0
votes
0answers
16 views

Difference between $(“path”) and $(By.linkText(“text”))? Selenium - Selenide

I need to locate a element, I used the following two ways: $("body.class1 div.class1.class2 div.class3.class5 div.class6.class7 li.classLogin a") .click() But I have problem with ...
0
votes
3answers
702 views

Get Text of a WebElement

I'm learning selenium and writting automation script for this website http://store.demoqa.com/products-page/your-account/ I'm trying to get value of the error message, I identified Error Message ...
0
votes
2answers
1k views

Selenium IDE - Selecting an option from Popup Menu when the ID is dynamic

I would like to select an option from the Popup Menu. I tried all possible combinations. Steps: I click on a button Popup menu opens select an option from the list of options. a) Edit b) Delete ...
2
votes
1answer
210 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 ...
3
votes
1answer
50 views

Selenium - WebElement.FindElement() Aware of changes to DOM?

Was just reading this question http://stackoverflow.com/questions/26882604/selenium-difference-between-webdriver-findelement-and-webelement-findelement trying to understand the scope of the ...
2
votes
1answer
1k views

How to get the Event Object of the Click event on Selenium IDE?

I am a newb at selenium thing. I have image map area and on click event of this area a function is firing where the click Event Object is being passed to do some calculation. I have recorded the ...
2
votes
3answers
4k views

Selenium Web driver and Mozilla Firefox Compatibility

Currently am using selenium-java-2.53.0,can you tell me which is the most stable FF version for it.