Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

1
vote
8answers
30k views

Selenium test case fails due to page load time

I run nearly 30-40 test cases twice a day. And everytime some test case fails due to page load time. Infact i have explicitly mentioned Thread.sleep("2000"); wherever i feel it takes more time to load....
1
vote
1answer
760 views

Jenkins fails to start Chrome

I am working on Jenkins to run my scripts but I am facing the following issue: Running TestSuite Starting ChromeDriver 2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b) on port 7652 Only ...
1
vote
2answers
53 views

Using boolean to select gender on a form

I am creating a test suite using appium/selenium java and it was suggested that I use a boolean to select the gender on a registration form. The page objects on the gender page are male, female, and ...
0
votes
0answers
6 views

Getting Unknown error While Using latest Verison of Selenium With Microsoft Edge Browser

My Code to launch Browser: System.setProperty("webdriver.edge.driver", "C:\\selenium-drivers\\MicrosoftWebDriver.exe"); DesiredCapabilities capabilities = new DesiredCapabilities("...
0
votes
1answer
30 views

Switch case and dropdown in selenium

I am writing code to get state value from the drop-down and depending upon the state calculating the tax rate. I am using switch case statement to define the tax rate for each state. I want to use ...
0
votes
1answer
78 views

Random Selenium WebDriver Tests inconsistently Fail and Pass on IE browser

Does anyone have any suggestions on how I can improve this situation? I have one suite of tests that I use for all three Firefox, Chrome, and IE browsers. The results I get for the browsers differs - ...
0
votes
0answers
8 views

Tools for Data Driven and Keyword driven tests in selenium with python?

I am new to selenium and python, I was watching some videos on data driven and keyword driven tests, the instructor was using TestNG with selenium and I was wondering are there any tools similar to ...
0
votes
1answer
418 views

Selenium 2.40 driver select tag issue

Following code works for selecting the last item from dropdown using Selenium 2.28 driver on Firefox and IE. Not working with Selenium Web Driver 2.40. I can see the dropdown opening but it is not ...
0
votes
2answers
48 views

Are other classes able to access the webdriver instance when extending test base class? Getting NullPointerException Error

I am getting this error when running the below selenium scripts using TestNG with Selenium Grid. I'm extending the testbase class to access the WebDriver, but I'm not sure if each class is getting the ...
0
votes
1answer
12 views

can we create a software application for the full script of selenium coding we have done?

If we have created some selenium code for web application testing. After completion of the script coding, can we create a java application or something like that?
20
votes
15answers
22k views

Under what circumstances is Sikuli better for test automation than Selenium or Watir?

The Sikuli website says: Sikuli is a visual technology to automate and test graphical user interfaces (GUI) using images (screenshots). Under what circumstances is Sikuli a better technology ...
7
votes
2answers
4k views

How to clear localStorage using selenium and webdriver

I want to call localStorage.clear() before running a group of specific tests but the thing is I don't know how. I can see CLEAR_LOCAL_STORAGE variable mentioned here but still failing to understand ...
1
vote
1answer
27 views

Selenium 2 Webdriver: Persistent cookie browser restart

I test a OAuth 2 Login page. It allows me to remember my login. This is done with a persistant cookie. Now I want to test if this cookie remains present after a browser restart which is its intent: .....
0
votes
1answer
19 views

Plugin of Maven - Automated test

I need to run automated test on Bamboo (Atlassian) but i don't know what plugin of maven use. The automated test are with Selenium and Java.
-1
votes
1answer
55 views

Selenium Testing

I have resetVal() function in javascript as given below. I am unable to figure out how to write selenium test case for reset values. <script> function resetVal(){ document.getElementById("...
0
votes
0answers
22 views

Selenium EventFiringWebDriver in page object model and refactored

I'm struggling with this one, how to implement EventFiringWebDriver (e_driver) without having a lot of repetitive code. As I'm understanding it, in order to capture finding elements and acting on ...
1
vote
1answer
82 views

Automation Java - Android - How to get items from a ListView?

I'm trying to get the items from a ListView so I can compare them with of expected results. The thing is that I can't figure out how to get those Elements. I'm also the developer of the App, so I'm ...
3
votes
2answers
51 views

Tomcat Server when used amongst Selenium Grid setup

We are using a different style of Automation framework in our project (as per client request) wherein we have designed a JSP page and this page contains links and buttons through which each ...
12
votes
6answers
37k views

Selenium: reuse existing browser session, instead of opening new windows?

This has been asked a million times on the web, but there's no clear cut answer. I tried "-browserSessionReuse" today without any luck; my tests keep spawning new browser windows. X:\QA\Automation\...
1
vote
1answer
103 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 ...
2
votes
1answer
78 views

Selenium couldn't do anything while browser is loading long ajax response

I have to perform some tests to web application with interesting interface. I faced with the following issue: there is a process with progress bar and while process is not finished, selenium couldn't ...
0
votes
1answer
105 views

How to Code this SSL Certificate Dialog, with Selenium IEdriver “request for permission to use a key” IE 8 9 11

Can anyone help me with sample code please. I have to login with SSL client certificate to authenticate in IE, this UI only works in IE. I have this Autoit Script but the popup is not being read by ...
2
votes
4answers
239 views

How best to test file download links using Selenium

On a website I am testing we have various links that download PDF files to the users computer. Our selenium suite runs nightly on bamboo, if we were to download the various files overnight it ...
1
vote
0answers
13 views

Got an error while build or clean mavan project-Could not initialize class org.apache.maven.index.ArtifactInfo

Hi All when I am try to build or clean the mavan project I got below error can any help me ? Errors occurred during the build. Errors running builder 'Maven Project Builder' on project 'POM-...
0
votes
5answers
86 views

In Selenium SendKeys() doesn't trigger auto-updating field while normal typing does

I'm trying to automate box, that displays and auto updates data under it depending on what you type into it. For example, when i type "Joh" it will display "John One" "John Two" in drop down menu, as ...
1
vote
1answer
23 views

SetPageLoad Timeout not working for Selenium web driver

In my webdriver test, I have the below. Despite the SetPageLoadTimeout, the script is still executing the next line before allowing the page to load. driver.FindElement(By.LinkText("MySurvey"))....
0
votes
2answers
49 views

Unable to locate element throwing a org.openqa.selenium.NoSuchElementException in TestNG

Am unable to click on element after executing a First test second test showing a org.openqa.selenium.NoSuchElementException . My code Here: public class snapooh { WebDriver driver; @BeforeTest ...
0
votes
2answers
50 views

Selenium is not recognizing xpath

When I attempt to search for the following element by xPath, Selenium does not find the the element. Not sure what I'm missing here. driver.FindElement(By.XPath("//input[@type='text']")).SendKeys("...
0
votes
3answers
523 views

Selenium Webdriver - finding element on IE 11

I'm trying to assert a 'name' on my page, to assure the right name is displayed: public static OpenQA.Selenium.By Name = (By.CssSelector("p")); Assert.AreEqual("Name", Global.driver.FindElement(...
0
votes
5answers
132 views

How to get entered text from textbox when value is empty in selenium using java?

Just I am trying to get entered text from the text field when value is empty. Below is my HTML: <input type="text" style="width: 203px" value="" maxlength="32" name="firstName"/> I tried ...
1
vote
2answers
57 views

webdriver.support.select - Select doesn't interact with the element

Hello, I have the following select: <div class="col-xs-12 col-md-6"> <label class="ph_label pointer city"> <span class="l citylbl">City</span> <select class="cities custom-...
2
votes
1answer
2k views

How to 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 ...
2
votes
2answers
457 views

How can I verify text exist within a table using Selenium IDE?

Using selenium IDE- I am looking for a way to locate and or verify a value in a table. There are more columns in the table, but I am only concerned with the first 4. Also the number of rows varies as ...
1
vote
4answers
269 views

How can I avoid conflicts running Selenium tests in parallel, when they must exercise an underlying REST API?

I have a web application which needs to be tested in multiple browsers in multiple environments (i.e. Chrome, Firefox, and Internet Explorer in both Windows and Linux* (*with the obvious exception of ...
0
votes
2answers
142 views

How to run Junit test methods in parallel?

I need to run Junit test methods in a Class parallelly to save time using Threads. I have added the following code in my pom.xml file after referring to a website. please let me know what the next ...
0
votes
2answers
50 views

How to verify if a button is not clickable in Selenium (C#)?

Can anyone suggest a good method to use when you want to check if a element is NOT clickable. In one of my scripts, I'm trying to verify that a button clickable until a certain action is taken on the ...
1
vote
2answers
289 views

Testing Download Dialog Box with Selenium

I want to test (using selenium webdriver) if clicking a button causes the right file download dialog to appear. For the automated part of the test I don't have to download the actual file, checking ...
0
votes
2answers
66 views

Fluent Wait not working as expected

I observed fluent wait not identifying an element even though page is loaded completely and element is visible on the screen. For an example, I have an application with say page A and page B. On ...
5
votes
6answers
18k 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
30 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
27 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
192 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 ...
1
vote
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
104 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.