Tagged Questions
0
votes
1answer
12 views
How do run each browserdriver based on enum list value?
Hi I am using the code found in the first answer on this page: Click Here
I an able to run this successfully and choose the browser by changing environment USED_DRIVER line for a number of different ...
1
vote
1answer
220 views
Find elements using css selector/xpath of Selenium Webdriver with Ruby
I have recently started using Selenium to test an app having webviews. Well the code for my webview is:
<div class="class1 class2 class3 class4" style="padding: 4px;" ...
0
votes
1answer
33 views
WebDriver SelectElement get selected value
var test = SelectElement([TheIWebElemement]);
Assert.AreEqual("55", test.SelectedOption.Text);
Based on the above snippet, does anyone know how to get the selected value in the dropdown. I am ...
0
votes
2answers
49 views
How to catagorize or group selenium webdriver tests
Suppose I have a web page with several links on it. Also it has few buttons which execute some JavaScript.
So should I create one Java class for testing each of these links and elements or should I ...
0
votes
0answers
78 views
Ruby Selenium Webdriver unable to find and click elements
So I'm pretty new to Selenium, but I'm using the Ruby binding to test a page with the following code:
require "selenium-webdriver"
profile = Selenium::WebDriver::Firefox::Profile.new
...
1
vote
3answers
85 views
How to create a webdriver function which passes parameters for a test script?
I am trying to create a function for a login test script which passes parameters such as Username and Password. I am new to this please do elaborate. Here's the code I've written--
public void ...
2
votes
1answer
139 views
Chrome and Firefox browsers are not opening while running my test cases from command prompt through ANT
I have written 3 test cases
1 open the Google site in Firefox browser and search
2 open the Google site in Chrome browser and search
3 Printing some messages,no browser involved
From Eclipse I ...
0
votes
1answer
65 views
Play the video using selenium webdriver
I am trying to play the video (Using Junit) - Day01 of following website.
http://www.itelearn.com/live-training/security-testing-live-training
What I am trying to achieve is after playing the video I ...
0
votes
1answer
41 views
Mocking HTTP interaction with Selenium WebDriver
Is there a way to mock an http interaction/conversation with a selenium webdriver instance?
Suppose I want to point a WebDriver instance at some url "X" but want it to load some html "Y" instead --- ...
-1
votes
2answers
196 views
selenium webdriver getText()
I have a question about Selenium WebDriver .getText() function in Java.
I'm trying to access some text without any positive results. Is not even in the WebElement object. The text i want to fetch is: ...
0
votes
1answer
74 views
How to test 2 different links with same text?
I was testing if the link exists on a web page. For that I am testing if that particular text for ex "Selenium Videos" is in <a></a> tag or not. But there are two same links such as ...
0
votes
2answers
65 views
testing content of a webpage
I am new to software testing and was wondering which is the correct way to test content of a web page. For ex. on a web page if there are 10 labels then should I test first header "Selenium Training ...
0
votes
1answer
40 views
Need some plugin to use in selenium for browser compatable( for cross browser UI testing )
I am using selenium for functionality testing.
When I testing on each browser , I would like to know any plugin can support to test UI ( cross browser )difference between browsers (browser ...
0
votes
0answers
213 views
error with safari web driver in selenium
Jun 19, 2013 3:48:48 PM org.openqa.selenium.safari.SafariDriverServer start
INFO: Server started on port 27821
Jun 19, 2013 3:48:49 PM org.openqa.selenium.safari.SafariDriverChannelHandler$1 ...
-1
votes
1answer
105 views
Robot Framework - Case sensitive
I need to know if there is a workaround on this error:
When I use Keywords like:
Location Should Be
Location Should Contain
(Which are both part of the Selenium2Library.)
I get this error:
...
0
votes
1answer
105 views
Waiting for a chart to refresh, selenium Java
I'm trying to find an appropriate ExpectedConditions method for this situation. I have a chart and I want to check the text in each row after re-sorting the chart. Problem is, when the chart is ...
0
votes
0answers
38 views
automated testing of epos systems
I have just started working for a new team - who currently test retail applications such as EPoS (end point of sale - tills). This is all currently done manually and I would like to start the process ...
-1
votes
2answers
146 views
How to test multiple version of google chrome using chromedriver?
selenium web-driver with java then how to use chrome driver for test their lower version of Google chrome
0
votes
0answers
81 views
WebdriverJS and drop down menus
I am running WebdriverJS on nodeJS to test the UI of a website. I want select and click on a submenu item in a drop down menubar. The submenu items are hidden by CSS. The menubar looks like this:
...
0
votes
4answers
357 views
Using selenium 2, how to type in textbox?
I am using Selenium 2.
But after running following code, i could not able to type in textbox.
package Actor;
import org.openqa.*;
import org.openqa.selenium.By;
import ...
0
votes
1answer
282 views
Selenium how to get the alert Alert message
Hi i am using the below for retrieving the alert message data but it is failed
Alert alert = driver.switchTo().alert();
String ss1=alert.getText();
it display the bellow error message .
...
-2
votes
2answers
140 views
What is the best tool for Mobile Testing? [closed]
At present we have frame work which supports All web browsers (Firefox,IE and Chrome) this one is for testing a web application.
The question is we have a mobile and ipad sites as well.
So Can you ...
3
votes
2answers
172 views
Capturing JS errors in Chrome
I'm capturing js errors in the application with window.onerror, but the thing is - in Chrome if dev tools isn't opened - then the url parameter passed to onerror handler always equals to the opened ...
2
votes
1answer
1k views
Skipping selenium webdriver scripts after “Error communicating with the remote browser” error in chrome
I am running a set of 400 selenium2 scripts (webdriver backed) in java.
When I am running the scripts on a node registered with the grid, sometimes I get the Error communicating with the remote ...
1
vote
0answers
187 views
Set session cookies in play framework testing using selenium hd
I am trying to do some unit testing using selenium hd. I currently have the following code:
browser.goTo("http://localhost:3333/")
browser.$("#email").text("[email protected]")
...
2
votes
2answers
261 views
getWindowHandle function doesn't exist for driver in Selenium
I need to implement switch from one window to another in IE. However, element driver doesn't support getWindowHandle function.
I assume it might be just configuration problem or settings, though I ...
0
votes
0answers
136 views
Running multiple Rspec files in parallel with Selenium Grid
I have been working on a Rspec/Selenium Webdriver test framework where I need to run my Rspec tests distributed across multiple files in same directory spec/*_test.rb.I was looking for the existing ...
0
votes
1answer
98 views
Catch timeout event in ruby selenium
Is there any way to catch all timeout error events in selenium , written in Ruby?
I am writing jenkins with selenium , but not sure the best way to terminate building tasks btw steps . The way I ...
2
votes
0answers
145 views
Running an arbitrary command/program on selenium grid node
Is it possible to run an arbitrary OS program on the selenium node before running tests?
Why I need such a weird thing:
In one test of the web application I need to simulate mouseover for 1 second, ...
2
votes
3answers
709 views
How do i make a Selenium WebDriver run for many hours(CHO) without it causing a crash / OutOfMemory problems?
I am using selenium-2.30.0 to run a single test(on windows) which runs for many hours (~ 8 Hrs). I was using the FF driver, but it runs out of memory after just 45 minutes or less, & the test ...
0
votes
1answer
158 views
Does Selenium Web driver Support IE6?
I am working on selenium test automation. I have been recording test cases in Firefox and exporting the same as JUnit. I invoked the test cases with selenium web driver and run in different browsers. ...
0
votes
3answers
515 views
PHPUnit_Selenium: Don't throw exceptions if element not found?
I am using the PHPUnit_Selenium extension and encounter some unwanted behaviour if an element does not exist:
Selenium Test Case:
$this->type('id=search', $searchTerm);
Test Output:
...
1
vote
0answers
51 views
How to automate custom designed browser based appliacation?
We have an JavaScript application which runs on our own custom designed browser. Now, I have came across the situation to automate our application on that browser.
I have vast experience in Selenium ...
0
votes
0answers
116 views
How to turn off Location Services using Selenium IPad Web driver
I am using Selenium Ipad web driver for testing a web application on Sauce labs. When I start the webdriver and naviagte to my site, I get a pop-up:
Iwebdriver would like to use your current ...
2
votes
1answer
2k views
Selenium WebDriver. After waiting for the element click() freezes test
I need to click on the dynamically generated element using Selenium WebDriver (Java API).
I'm waiting for this element to appear with WebDriverWait and then clicking on it. This click succeeds but the ...
0
votes
1answer
118 views
Changing url for the pages with onbeforeunload
This question is mostly particularly about phpunit_selenium2 extension (though the general ideas are welcome as well):
Let's say I have a page that fires an alert on the browser/tab closing event ...
0
votes
0answers
118 views
TestNG: inheritance + @Factory
I'm designing tests for some custom Alfresco modules being developed by our team. Tests are using TestNG and they are also use Selenium WebDriver. (Selenium WebDriver is not the case regarding this ...
0
votes
1answer
154 views
How Do I Select Everything In a Text Field With WebDriver
I am testing a webpage which has a counter in a reason field and a previous reason in the reason field. If I do a field.clear(); the counter is not reset. So I am trying to do the following:
int ...
0
votes
1answer
82 views
How to perform a double click using phpunit_selenium2 extension?
The question is specifically to the phpunit_selenium2.
1
vote
2answers
450 views
Can you change IE document mode using Selenium WebDriver and C#?
I'm using WebDriver and Selenium Server 2.28. I'm running this on a Windows 7 environment, and the version of IE is 9.0.8.
I'd like to know if there is any way of forcing compatibility mode in IE ...
2
votes
1answer
110 views
How to avoid extra HTTP request on test beginning?
Let's say I have a test like this:
class SortTest extends PHPUnit_Extensions_Selenium2TestCase
{
public function setUp()
{
$this->setHost('192.168.1.1');
...
3
votes
2answers
683 views
Explicit waits in phpunit selenium2 extension
For C# there is a way to write a statement for waiting until an element on a page appears:
WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10));
IWebElement myDynamicElement = ...
1
vote
1answer
429 views
Can i use MyEclipse IDE instead of Eclipse IDE (Eclipse for Testers) for using testing with Selenium
I am new with Selenium and having java development experience.
I have installed Selenium IDE as plugin with Firefox.
I have MyEclipse IDE. Should i download another Eclipse IDE for using testing ...
0
votes
1answer
75 views
Get Current Value of Select Field
I have a website I am trying to test which has several drop downs. One select element is below:
<select class="input-xxlarge" name="dosage">
<option value="20 MG, Enteric Coated ...
0
votes
1answer
138 views
Get result from junit test
I'm using selenium webdriver 2.0 java api to run some tests in my company. I'm doing it at free will and have no heavy knowledge about automation so part my ignorance.
I would like to know how can I ...
0
votes
2answers
2k views
Selenium: unable to click on class and image
I'm using Selenium web driver and trying to click on search image and its unable to click on this. I'm not sure what is going wrong. I have tried
xpath option
...
1
vote
2answers
98 views
Do something before and after tests
I have several Junit/Selenium WebDriver tests, each one in separate class. Still I have not been able to implement methods which should be run before and after ALL tests are run. Not before or after ...
0
votes
1answer
125 views
Rails 3.2 selenium web driver testing
I am using rspec + spork + selenium webdriver to test my app. I don't know how to access my app from selenium(while running rspec) for eg what url should i type in driver.navigate.to to get access to ...
1
vote
4answers
4k views
switch tabs using selenium Webdriver
Using Selenium Webdriver with JAVA ,
I am trying to automate a functionality where I have to open a new tab do some operations there and come back to previous tab (Parent).
I used switch handle but ...
0
votes
3answers
89 views
how continue new test executinon in the same window but using new class?
I have test in selenium webdriver, run it with junit in internet explorer. So I create webdriver for ie:
System.setProperty("webdriver.ie.driver", "IEDriverServer.exe");
...