Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

0
votes
1answer
16 views

change the title of a webpage in JUnit test with Selenium Web Driver

I want to write a Automated JUnit test script with Selenium Web Driver to load a Wikipedia page and then change the title of the page loaded. import java.util.regex.Pattern; import ...
2
votes
6answers
187 views

Will learning selenium add value to my career?

I have 8 years experience in manual testing. I've just gotten interested in automation testing now. Just wanted to know if learning selenium at this point of my career will add value. If yes, then in ...
6
votes
4answers
249 views

Test Automation Engineer, no record-playback?

I want to become a test automation engineer in the future. The thing that is concerning me is this: I have always thought that test automation is using record-playback to test different application. ...
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
1answer
65 views

switching between tabs in a browser

I am trying to click on a download link which will open in a new tab in pdf format.I want to do some actions on newly open tab. I am able to switch to newly open tab but when I am trying to do any ...
0
votes
1answer
20 views

How to add @parameter annotation for TestNG in Eclipse

I'm trying to do parameterization for TestNG in Eclipse but the annotation @parameter is not being shown. How to add @parameter annotation for TestNG in eclipse?
0
votes
1answer
33 views

Handle Firefox native dialog windows with Selenium IDE

I'm new using Selenium IDE (and as a QA). I'm testing my Web application on Firefox and I have an export button that downloads an Excel file. My problem is how to handle the window dialog native of ...
2
votes
2answers
825 views

Selenium WebDriver how to name each screenshot taken after a test based on the test name

I am currently using the following method to take screenshots after each test, and it works fine: @After public void takeScreenshotAtEndOfTest() throws IOException { File scrFile = ...
0
votes
1answer
90 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
2answers
125 views

How to read date value from a calendar through selenium ide

There is a calendar object in the web page, not developed internally. It's a datetime picker. How do I read the selected value from it through selenium ide? Thanks in advance guys.
0
votes
1answer
117 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
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 ...
1
vote
2answers
65 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 ...
0
votes
2answers
52 views

Where to store XPath variables

Where should I store XPath variables - in a class or in an external file? What are the (dis)advantages of these approaches?
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
4answers
84 views

What set of toolkits and frameworks should I learn to be considered as a good tester

I am very new at testing, so my apologies in advance if my question is very primary. I started my job as a Tester 4 months ago. I am using Java, Selenium and Sikuli to write tests for applications. I ...
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. ...
1
vote
6answers
10k views

Using Selenium (C#) how do I select an item from a drop-down list

I'm using the Selenium IDE to record my initial tests and then export them to c# and then use the webdriver. Some things that I do from the IDE don't export. I am trying to select a State from a ...
0
votes
1answer
28 views

Dataproviders and Asserts

When using DataProviders, on TestNG, my test method has asserts that will fail since the data passed in navigates to a different url. Is there a way to work around this, i.e. a way for the data to ...
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() { ... } ...
6
votes
5answers
939 views

I want to learn Selenium but not sure about the language I need to learn for automation

Java or Javascript? or maybe another language? Please help me choose the programming language I should learn for Selenium automation and its benefit over other. Any pro's and con's?
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 ...
2
votes
0answers
938 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 ...
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
2answers
57 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
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
2answers
47 views

For successful build how many test cycles are required

In one interview they asked me about the agile testing. "How often testing cycle happens in your project after successful build?" I'm new to agile methodology in testing. Please let me know how to ...
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 ...
12
votes
9answers
11k views

Whether to choose Selenium over Watir or Lightweight Test Automation when testing web applications created using C Sharp?

I am currently researching testing frameworks to test C Sharp developed web applications. I have been leaning more towards the use of Selenium over Watir or Lightweight Test Automation but hesitant ...
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 ...
1
vote
1answer
80 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
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
379 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
104 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
1answer
457 views

TestNg not executes @BeforeGroup if the method is in another class

My code structure is like this: I have four classes having ten tests and one @BeforeClass method to run before any of the tests. In each of four classes all tests are of one single group. And I have ...
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
3answers
142 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
0answers
14 views

Integration of selenium and HPQC

What are the options available for integrating Selenium web driver .net framework with HP QC. I know API is available from QC but I am looking for existing frameworks or tools that I can use for same. ...
0
votes
1answer
33 views

Want to get value from the below code snippet through Web Driver

<script> jQuery(function() {jQuery("#chart").kendoChart({"chartArea":{"background":"#f7f7f7"} "title":{"position":"top"} "legend":{"visible":false} "series":[{"name":"Consumption" ...
5
votes
2answers
71 views

How to avoid flakey E2E selenium tests?

I'm under the impression that most of the E2E selenium tests are flakey. A major reason seems to be timing issues. Another one is that they often test against servers that are not controlled by the ...
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 ...
0
votes
1answer
52 views

Verify if popup appears using Selenium

I want to verify if a pop-up appears, so I went to inspect element of the link and I tried to match the ownerID from the element to that of the url that pops-up but the issue that I have is that when ...
1
vote
2answers
455 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 ...
0
votes
0answers
18 views

Type mismatch: cannot convert from WebElement to List<WebElement>

Whenever I am trying to use a list element, this error is showing Type mismatch: cannot convert from WebElement to List<WebElement> in appium. Please help! List ...
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 ...
0
votes
2answers
51 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 ...
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 ...