Selenium is a tools suite to automate web browsers. When using this tag, also include other tags for the specific components you are using, e.g. selenium-webdriver for the language bindings, selenium-ide, selenium-grid, etc.

learn more… | top users | synonyms

2
votes
0answers
25 views

Take screenshot with selenium in Fullscreen mode

I am taking a screenshot by using selenium with no display. It's working but it would be nice if I could take a screenshot of the Fullscreen Browser (without Firefox Toolbar and so on, just the ...
0
votes
1answer
11 views

How to use gethtmlsource or storeHtmlSource in Selenium Webdriver(Java)?

i want to print html page source in output. In selenium IDE there is a command to perform this action. storeHtmlSource How to do the same in Selenium Webdriver(Java)? While exporting the ...
0
votes
3answers
28 views

How to select webelement from dropdown menu using webdriver

I am trying to select a webelement from a dropdown but not able to do so. The webelement which i am trying to select from the drop down is Edit/ViewResume 1st Try In my first attempt i tried to ...
-4
votes
0answers
12 views

selenium with python and Web form

I got selenium in python and i am trying to automatically fill up a form in a Web page. I don't know how to script it for clicking on radio and check button as well as fill up text fields. I will ...
0
votes
1answer
31 views

how to choose a value in dropdown which is not in select tag ..?

I am using selenium-RC for my automation with java (Eclipse Kepler) . I am facing some issues with a selection of a option in a drop down list which is not in select tag it is in span. I want to test ...
1
vote
3answers
73 views

In Selenium, What is the command to “wait until the page loading stops”

How to make the WebDriver wait until the page loading stops completely. Means, it waits and checks whether entire page has been loaded or not, then only it proceeds with the next line execution.
-1
votes
1answer
18 views

Selenium using JUnit

I am getting a null pointer exception when I try to run the following code: import org.junit.Test; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public ...
0
votes
1answer
29 views

How to get Inspect Element code in selenium

I'm working in selenium with Firefox browser. The Html code shown in View Source (CTRL+U) is different from the html code i see when inspecting the elements in Firefox. when i run the ...
0
votes
0answers
6 views

Tests under Bamboo: mysql has gone away [duplicate]

I have a bunch of testcases for phpunit and selenium. When I run it on local machine it's ok. But when I run it under Bamboo I get an error for the numbers of last of tests: CDbException: ...
0
votes
1answer
16 views

selenium, jmeter (non gui) and chromedriver

I created a script in Jmeter that works in the gui and I moved it to an AWS instance. I'm using: selenium-server-standalone-2.35.0.jar ChromeDriver (v2.2) Chromium 37.0.2062.120 Ubuntu 14.04 and ...
0
votes
3answers
35 views

Find element by attribute

I am trying to find an element with Attribute. Well, I can find elements with Id, tagName, Xpath and all other predefined methods in Selenium. But, I am trying to write a method that specifically ...
1
vote
1answer
8 views

How to enter values in text box by using Selenium Automation-Android Emulator on Sauce Labs

While automating android emulator on sauce labs I cant enter the value "123-456-0789" in the textbox even though I have used the following code; //I have checked the web element also. ...
-1
votes
1answer
28 views

How can I extract an HTML form value?

Hi I have the following in a page: input id="cu_first_name" class="input_text" type="text" value="test_name" name="cu_name" I am trying to extract the value and print it in python. I use: ...
0
votes
1answer
14 views

PHPUnit+Selenium: 'displayed()' isn't working on popover element

In my PHPUnit_Extensions_Selenium2TestCase test case, I try to open a bootstrap popover element (http://getbootstrap.com/javascript/#popovers) and then click a link inside. I manage to open it, but ...
0
votes
0answers
4 views

screen resolution in mode “Run whether user is logged on or not”, in windows task scheduler

I am using Python 2.7 and Selenium 2.39.0. to test a web application. When I run my test as a Windows (7 Ent.) scheduled task with the option "Run whether user is logged on or not", it looks like the ...
0
votes
3answers
45 views

Getting element by Id

Selenium, NUnit testing, C#, Visual Studio. How, in Selenium WebDriver, can I locate element in a page source that looks like following, and set some text in its <p> tag: <body ...
0
votes
0answers
15 views

Selenium set inline date picker field

I have a inline editable date field on my page. So it is nothing but a toggle between static "div" (date text) and on click, shown in editable textbox (with datepicker) I have the below JS code to ...
0
votes
1answer
16 views

Selenium webdriver. Reading an earlier line

Trying to automatize a couple of tests for our projects using the selenium webdriver and C# and i got into the following situation: When i try to test the main menu the flow goes something like this: ...
0
votes
1answer
20 views

How do I access Selenium WebDriver's (DOM) representation of a page in a debugger?

I just joined a team who use Selenium WebDriver (with Java), and I was wondering if it holds an object representation (e.g. a DOM model) of the current page in memory that I can look at in a debugger? ...
0
votes
1answer
15 views

Selenium Date comparison example

I am trying to validate dates using Selenium. So my scenario is; Scenario: Date validation When I set field <field> to value <value> And I save the form Then I should see error message ...
0
votes
2answers
16 views

Selenium WebDriver click on input element to upload file freezes

I have to click on an element to upload a CSV file with Selenium WebDriver in JUnit. The input looks like this: <input type="file" name="upload0" size="56" value="" ...
0
votes
1answer
12 views

jBehave NullPointerException for step method

I have the following jBehave story / scenario; Scenario: some info validation When I enter the population as <global_target_pop> and submit Then I should see validation message <message> ...
0
votes
0answers
13 views

Cursor pointing on a web page load by selenium web driver

I am facing a strange issue when I execute the automation script. From the login page to home when the system navigates , then cursor locates on mouse over drop down list in the page automatically and ...
0
votes
1answer
21 views

Click event on link using WebDriver shows “javascript:void(0)” on status bar

I am trying to click on first link from dropdown list which is generated on mouse hover event. Tried with lots of options But NO success, it's Only seen "javascript:void(0)" on status bar. So far ...
-1
votes
1answer
28 views

Selenium Webdriver- I attempted to select an optionf rom dropdown list but failed. I used the code below:

Selenium Webdriver - I attempted to select an optionf rom dropdown list but failed. I used the code below: ...
1
vote
1answer
32 views

Wrap specflow scenario within try-catch

I have been running into a problem with the C# selenium bindings decribed here: Selenium Error - The HTTP request to the remote WebDriver timed out after 60 seconds where a timeout exception is ...
-1
votes
1answer
47 views

How to find a unique button that has no name or id?

I have a webpage that has multiple containers that each have a header (fooHeading), name (fooName), and a button (fooButton). There would be multiple containers on the same page that look as follows: ...
0
votes
2answers
28 views

How to navigate through webpage links and back again using Selenium?

I am trying to locate all hyperlinks on a webpage of which the link text is also in the list, footerNames. I want to click the link, wait (will put a verification check in later), navigate back and ...
0
votes
0answers
11 views

PHPUnit, Selenium and Magento development environment

I have a Magento-based application and I'm trying to use PHPUnit with Selenium to test clicking on the links, but I keeps getting an error. I am also using the BrowserStack, which could be causing the ...
1
vote
0answers
11 views

selenium webdriver ruby warning messages in log

I recorded some tests using the ide and then exported them to ruby/rspec. When I run them they work, but I get lots of warnings. Can you tell me how to get rid of this warning? net/http: warning: ...
0
votes
1answer
21 views

How to press [WINDOW] + [UpArrow] keys together, using Sikuli or Selenium

I need to press WINDOW + UpArrow. At first attempt I have tried with sikuli by :- s1.type(Key.WIN + Key.UP); But it only press WINDOW and UpArrow buttons, but separately. By selenium I have try ...
0
votes
2answers
25 views

Unable to doubleclick in selenium webdriver c#

I'm trying to doubleclick on an option within a selectbox using the Actions class in c# Selenium WebDriver. The following code works fine for firefox but not for IE or Chrome. Any suggestions on why ...
-3
votes
0answers
17 views

I want to display the no of likes of a post/photo in Facebook page using selenium web driver,core java?

Once i wrote the relative xpath, which displays matching node in the page. but after executing the script it throws noSuchElement expception.
1
vote
2answers
25 views

Unable to find the locator with Link Text test case getting failed

I am not able find the locator with anchor tag. Using xpath doesn't give the result. Here is the HTML code : <a id="sme1" class="item" href="/website-url" onclick="swapClasses('sme1')" ...
0
votes
0answers
26 views

Running Different Versions of IE with webDriver?

So Guys, this selenium and IE is giving me headaches. I have set a grid with different IE versions (9, 10 and 11) on different VMs (as this is clean and feasible) And through my java code I am ...
0
votes
3answers
37 views

Selenium WebDriver, Java: how to determine if a page is fully loaded by comparing two elements?

Background I am using Selenium WebDriver/Java to scrape a table. The table I am interested in is divided into many separate pages (= one must click a link to see the next page). At the bottom of the ...
0
votes
0answers
19 views

PHPUnit + Selenium, close browser when error

I'm doing testing in PHPUnit+Selenium (using PHPUnit_Extensions_SeleniumTestCase) and I need to do something to close browser even if the test result on error. Let's see, I've done this test: ...
0
votes
0answers
15 views

Selenium Server, click by locator in ASP.NET Web Pages work unstable

I have a problem when try to click for element using Selenium server method "click". The point is: sometimes some test failed, because one of element selenium doesnt fined, but in real - selenium ...
1
vote
0answers
17 views

Selenium inserting <br> tags

I am trying out selenium at the moment and am using it to insert text into fields that are saved into a MySQL db. However, it seems to be adding a <br> tag at the end of the string. For ...
0
votes
1answer
32 views

Python + Selenium to submit query on webpage

Hello all…I am trying to use Python and Selenium to submit query, a pair of coordinates “40.67243, -74.08379” on Google Map. driver = webdriver.PhantomJS() driver.get('https://maps.google.com/') ...
0
votes
0answers
22 views

Django 1.7 testing, losing data from data migration

I have two test suites Unittests using django.test.TestCase Functional tests using selenium in django.contrib.staticfiles.testing.StaticLiveServerTestCase The fixture system was really bad, and ...
1
vote
3answers
25 views

how to collect a particular row id's in an table - webdriver using java collections

Html code <table id="tblRenewalsStatus" class="bor-bot" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr id="trVerifyPayment"> <tr id="trAssignAgent"> ...
0
votes
0answers
8 views

Is it possible to run OpenScript functional tests from Maven?

can we integrate maven with OATS script to run manual test case like integrate maven with Selenium and add dependency in POM.xml?
2
votes
3answers
50 views

Mouse hover functionality using selenium Webdriver

I want to mousehover over image icon, then dropdown list is displayed later want to click on first option from drop-down list. I tried with all these options but non of them work for me. Please ...
0
votes
3answers
37 views

Selenium script for selecting value from dropdown as per value given by user from console

I have added a image (Stripe.com) i want to select a specific value from drop down as per user pass from console.Please help me with this. As Per my code it is taking zero values from drop down to ...
0
votes
0answers
7 views

How to get warnings for misuse of `first` or `all` in JS Capybara specs

When writing Capybara integration specs that will use a javascript driver, using first or all is often a bad idea, as this article explains: ...
0
votes
0answers
14 views

How do you send text to Firefox developer console using selenium

Using Selenium (python) I'm attempting to send text (example: JSON payload) to the Firefox console and not having any luck. Basically something like send_keys("data") that sends to the console in ...
0
votes
3answers
35 views

hiding your password in java class file for a test case

I am trying to write a selenium test case which will be put on company jenkins server where all the employee will have access to every java files I create. public static void main(String[] args) { ...
2
votes
1answer
37 views

WebdriverWait failing even though element is present

Here is my code: def CheckQueue(driver): qdone = False qID_xpath_start = "/html/body/div[5]/form/table/tbody[1]/tr[" qID_xpath_end = "]/td[2]/a" qIDindex = 1 while qdone == False: ...
1
vote
1answer
29 views

Scrape Comments (generated with javascript) using RSelenium/XML

I want to scrape comments from online news. This is an example: Story I believe to face the same problem as this one: Web data scraping (online news comments) with Scrapy (Python) But since I'm ...