Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

0
votes
1answer
4 views

Is it possible to shut down a Selenium grid node remotely?

I recently ran into an issue where someone registered a new Selenium node with our hub, but the new node was not configured the same as the other nodes. It occurred to me that just anyone could add a ...
0
votes
1answer
404 views

integration of Selenium Java testNG framework with .net framework

I have designed a framework in java using selenium by testNG framework. My question is can we integrate the entire framework with C# .net framework (Another framework for same application using .net ...
0
votes
1answer
30 views

How to select options from <Input> based dropdown menus in Selenium?

The website I'm testing has been built with Visual Studio C#. The dropdown menus I'm to test don't use the usual format of: <select> <option>...</option> ... ... </...
0
votes
1answer
16 views

Selenium > new windows & pop-up : What is different between new window and browser alert in selenium?

This is very common scenario when we automate any web application. But I am little confused between new window and pop-up? Please can you add little examples?
0
votes
1answer
20 views

What is the most effective method of storing the value in this string?

thanks for reading! :) currently I have a Listbox on the page with an associated record count, scenarios would be as follows: No Records Displaying 1 Record(s) Displaying 1-14 of X Records ...
5
votes
1answer
230 views

Selenium Grid2 - IOException thrown while closing Closeable.

I am executing my Selenium tests against a Grid server, hosted on a different machine. My grid invocation is (bat file): cd c:\ start java -jar c:\selenium-server-standalone-2.46.0.jar -role hub -...
3
votes
1answer
46 views

Element not clickable after login page reload with pagefactory

I am trying to create a simple Selenium script to login to a page directly proceeded by logging out from the page. I am using Selenium with C# and PageFactory to reach the elements on the webpage. I ...
4
votes
2answers
53 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 ...
-2
votes
0answers
31 views

The given selector “//*[@id='login-username']” is either invalid or does not result in a WebElement

I am trying to set a value in the text field .I have xpath and the value for the texxtfield stored in a HashMap. public static void textField_SetText(Map map,WebDriver driver){ try{ ...
0
votes
0answers
4 views

Conversion of geoJason coordinates to mouse coordinates

I am working with maps. I have one link whose end points are in geo-jason coordinates. One is longitude, another one is latitude. Now I want to know that how can convert this longitude and latitude to ...
0
votes
1answer
755 views

Selenium webdriver-Not able to click on button which becomes visible on hovering only

Here I'm using LinkedIn for the learning purpose & want to perform the action on Edit profile=> Work experience=> Add position. Here "Add position" button comes under work experience which becomes ...
0
votes
1answer
47 views

Required parameters but none were supplied error

Can someone help me on how to fix the error and run the script? public class ExcelCapture { public WebDriver driver; String filePath = "E:\\Study\\workspace\\OCM25_26_OCE_19\\OCM25_26_OCE_19\\...
0
votes
0answers
9 views

Get Coordinates of link that is in canvas

I am doing automation in selenium with RobotFramework in Java.I want to get x,y coordinates of links that are drawn in canvas. I tried to find a solution online but I just got to know that some java ...
1
vote
3answers
72 views

How to test the multiple test cases in a single test case using selenium webdriver

I am in confusion to write the test cases for one of my requirement.I have a signup process it will have 8 steps to complete a signup.How to write a test script for all steps by validating the each ...
0
votes
2answers
73 views

how to measure response time for both loading and search time for a website ? selenium

I need to measure response time for website using Selenium and Selenide. Response time of a website: I mean the loading time, I see that there is method to take difference between time before and ...
0
votes
2answers
17 views

Scroll Issue in Android Automation using SeeTest + Selenium Webdriver

I am using SeeTest + Selenium Webdriver + JAVA for Automating a Android application There is one contact page there are 15 fields . After filling 5th field the keyboard is overlapping the 6th ...
3
votes
4answers
63k views

How to find element using contains in xpath

can anyone please help me how to use contains in my xpath? My xpath changes all the time when users are added, so I can't find element using xpath. This is my xpath: .//*[@id='contentText']/table/...
0
votes
0answers
11 views

Exception in thread “main” java.lang.NoClassDefFoundError:

I a getting this error , I have already added all the the libraries and dependencies jar file. I dont understand where is the problem ? Error shows like this : Exception in thread "main" java.lang....
0
votes
1answer
51 views

Blank Browser launches on Selenium Grid Hub with Every Test Run on Node

Why does the hub keep launching a blank browser before it runs a test on the node? Every time a test starts to run, a blank browser is launched on the hub before it opens the same type of browser on ...
4
votes
1answer
125 views

Can I execute selenium test cases in a real browser with Jenkins Selenium and Maven

I am working on selenium project with Jenkins + Maven + Selenium + TestNG I am following few questions. Can I execute selenium test cases in Jenkins by launching browsers? Currently it gets ...
0
votes
0answers
17 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("...
3
votes
1answer
85 views

Problem with drop-down menu

I'm new to Selenium Webdriver and I have a problem with a dropdown menu. I compiled my code but sometimes it returns the error: org.openqa.selenium.NoSuchElementException: Unable to find element ...
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
794 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
56 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
1answer
39 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
81 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
13 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
419 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
54 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
19 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
40 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
27 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
57 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
23 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
89 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 ...
4
votes
2answers
52 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
79 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
109 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
243 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
92 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
25 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
55 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
51 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
542 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(...