Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

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 ...
1
vote
3answers
70 views

Options for headless browsers for .net?

I am looking at speeding up my automation using a headless browser. I tried converting my tests to use PhantomJS but test stability took a big hit. Some pop ups don't seem to render correctly, tests ...
1
vote
3answers
3k views

Difficulty setting focus on element with Selenium WebDriver

I have a Selenium WebDriver test where I enter some text into a text input box var input_Note = Driver.Instance.FindElement(By.Id("note")); input_Note.SendKeys("test"); I then attempt to ...
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 ...
0
votes
3answers
141 views

How to tackle the problem of non-static paths/names/ids of DOM elements while automating with Selenium?

I've got not very common task to take care of. We need to create several test suites for some forms in one complex web application. I'm a rookie in this field and Selenium was the first (and pretty ...
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
3answers
431 views

Selenium - How to get table rows visible in the dialogbox?

In a Selenium Junit test, for a table with 'n' rows in a dialog box of a webpage, I am able to calculate number of rows using Table.size() (Table is a List of elements which finds elements with tag ...
1
vote
2answers
61 views

IDE: [error] Threw an exception: missing ; before statement

I keep getting errors with my storeEval script. In IDE the log keeps giving me "[error] Threw an exception: missing ; before statement". I don't know what to do because I have tried putting a similar ...
1
vote
2answers
449 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 ...
1
vote
2answers
194 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
2answers
37 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
2answers
50 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
2answers
56 views

Problem with Selenium send_keys function and JavaScript event triggered by data change

I am using Python to write a Selenium test script and I have not been able to use it to enter data for a text area. Entering data into this area appears to trigger a JavaScript function that caches ...
0
votes
2answers
103 views

C# Selenium Webdriver “The path is not of a legal form.”

Running firefox portable (which I know used to work) is now producing an error "The path is not of a legal form." when trying to load profile. var binary = new ...
0
votes
2answers
370 views

Unable to run selenium webdriver script in IE11

I have IE 11 browser on Windows 8. I'm trying to automate a simple search but I am getting an exception. (The script works in Firefox) I made regedit changes according to instructions given in ...
0
votes
2answers
62 views

Locating button element in modal and/or new window

I am new in using selenium web driver. Can you help me which Element should I use? Here is the code. <a class="btn btn-sm blue" data-toggle="dropdown"> <i class="fa fa-gear"></i> ...
0
votes
2answers
90 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
443 views

Selenium IDE - Selecting an option from Popup Menu

I am new to Selenium IDE and not very good at coding.Trying to record few actions and selenium throws error. I would like to select an option from the Popup Menu. I tried all possible combinations. ...
0
votes
2answers
171 views

Script when passing values from one HTML page to other in Selenium IDE

How to create Selenium IDE script when passing value [Using hyperlink] from one HTML page to other. In my case the page was automatically closed After passing the value. When i am trying to run ...
-2
votes
2answers
5k views

How to solve the Unhandled exception: Modal dialog present

How do I solve the Unhandled exception: Modal dialog present. Below is error line. 1) test(TestCases1.ComparePage)org.openqa.selenium.UnhandledAlertException: Modal dialog present: Please retain at ...
0
votes
1answer
40 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 ...
0
votes
1answer
109 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 ...
0
votes
1answer
85 views

Executing on a selected node in selenium grid

I have one scenario i.e.. I have one web view to take all actions(click,send-keys,opening new window) and locator types(ex: xpath,id,name and cssClassName) with these values I am going to create a ...
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 ...
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
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 ...
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:
0
votes
1answer
823 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
2k views

How to run TESTNG failed test cases in jenkins for maven project?

I am new to jenkins and I have configured it on my windows PC. I have to run failed test cases twice before considering that they are failing. I am using TestNG and selenium webdriver for writing test ...
0
votes
1answer
177 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
651 views

Using Selenium Builder with Jenkins

I'm trying out Selenium Builder as an alternative to Selenium IDE and Selenium Webdriver. I've been pointed to a useful tutorial here: http://seleniumbuilder.github.io/se-builder/tools.html ...but ...
0
votes
1answer
230 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 ...
-1
votes
1answer
2k views

How to click on Canvas element?

How do I click on a Canvas element by using Selenium Web Driver and Java? I have searched Google but didn't find what I needed. A marker/pin is on the Google map and I have to click on the ...
-1
votes
1answer
333 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 ...
-1
votes
1answer
403 views

Advance commands of Selenium are not working in IE browser

I am using the SeleniumBackedWebdriver API in my current project, which supports both Selenium RC and WebDriver APIs. The Advanced User Interactions API like mouseUp(), mouseDown(), runScript() are ...
-2
votes
1answer
48 views

How to specify an existing database for django to use?

I think by default Django will create a new and empty test database to run the test cases. Is it possible to configure Django to use an existing database instead of creating a new one? === EDIT: The ...
-3
votes
1answer
920 views

Selenium Webdriver Unable to locate element error - {“method”:“id”,“selector”:“log”}

I am trying to execute the code but i am getting following error: "Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element: ...