selenium 1 « selenium « Java Testing Q&A

Home
Java Testing Q&A
1.Development
2.FindBugs
3.HTMLUnit
4.hudson
5.junit
6.performance
7.plugin
8.profile
9.selenium
10.Tools
11.unit test
Java Testing Q&A » selenium » selenium 1 

1. How to simulate pressing enter in html text input with Selenium?    stackoverflow.com

In a web interface, I've got a text field. When user enters text and accepts with enter, application performs an action. I wanted to test the behavior with Selenium. Unfortunately, invoking 'keypress' ...

2. Selenium Critique    stackoverflow.com

I just wanted some opinions from people that have run Selenium (http://selenium.openqa.org) I have had a lot of experience with WaTiN and even wrote a recording suite for it. ...

3. Start seleniumRC from Fitnesse    stackoverflow.com

I'm trying to integrate running Fitnesse tests from MSBuild im my nightly build on TFS. In an attempt to make it self contained I would like to start the seleniumRC server only ...

4. Selenium internals    stackoverflow.com

How does selenium work? Can you explain the internal working of it.

5. Selenium RC against a Cassini webserver    stackoverflow.com

I'm trying to run Selenium RC against my ASP.NET code running on a Cassini webserver. The web application works when i browse it directly but when running through Selenium I get HTTP ...

6. Defining custom actions in Selenium    stackoverflow.com

I have a Selenium test case that enters dates into a date selector made up of three pulldowns (year, month, and day).

select validity_Y label=2008
select validity_M label=08
select validity_D label=08
This part gets ...

7. How do I stop the Invalid Length warning in Selenium from occuring?    stackoverflow.com

Sometimes when running selenium, it displays a message similar to:

WARN - Invalid length: Content-Length=798242 written=8192
And then Selenium stops responding. The website under automation runs on ASP.NET, and served up ...

8. Selenium alternatives?    stackoverflow.com

Selenium seems to be the mainstream tool for browser side testing and it isn't that horrible. But are there any alternatives hiding out there, even in beta phase?

9. selenium-maven-plugin    stackoverflow.com

i'm trying to set up the selenium-maven-plugin and having some difficulties i hope somebody can help me. My configuration looks like this:

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>selenium-maven-plugin</artifactId>
  <executions>
    ...

10. Retrieving data with Selenium    stackoverflow.com

I want to get the business hours from ScotiaBank branches that are near to me. The base-URL is: http://maps.scotiabank.com/ I then, Click on the "Branches" radiobox. Click on the "Open Saturdays" checkbox. Enter "B3H ...

11. What's the Point of Selenium?    stackoverflow.com

Ok, maybe I'm missing something, but I really don't see the point of Selenium. What is the point of opening the browser using code, clicking buttons using code, and checking for ...

12. xHTML markup checker integrated in Selenium    stackoverflow.com

Recently, I thought about how can I improve the quality of the projects, by using Continuous checking of xHTML source at Continuous Integration machine. Look, we have a project http://sourceforge.net/projects/jtidy - ...

13. Cleaning up data after a selenium test    stackoverflow.com

I'm setting up some Selenium tests for an internal web app and looking for advice on a testing 'best practice'. One of the tests is going to add some data via ...

14. Selenium Address Bar    stackoverflow.com

Good morning I am using selenium and I have come up against a bit of a wall. I am attempting to navigate to another page, by typing in the address bar, however ...

15. testing with selenium    stackoverflow.com

I'm a complete selenium newbie. Where should I start if I want to learn how to use it?

16. reduce the size of the selenium frame    stackoverflow.com

I do I reduce the size of the selenium frame, in order to increase the frame of the website I am testing?

17. What attributes do you use for Selenium testing?    stackoverflow.com

We can search for specific field on website in a few ways: based on css, name, id, structure, even any text found. Which way have you decided to use? What would be ...

18. selenium-rc in bsd    stackoverflow.com

I'm trying to run selenium-rc in bsd and get the following error

12:45:40.740 WARN - POST /selenium-server/driver/ HTTP/1.1
java.lang.RuntimeException: Firefox couldn't be found in the path!
Please add the directory containing 'firefox-bin' to your ...

19. how to increment field value each time selenium test is run?    stackoverflow.com

is there any simple way to increment for example field value by +1 every time Selenium test is run through Selenium IDE?

Command: Type 
Target: some kind of id
Value: number+1
EDIT 1 :thanks ...

20. Selenium Test Suites    stackoverflow.com

I have been running test cases in Selenium IDE using Firefox. This works quite well however when I create a suite by "adding test cases" I can never get the suite ...

21. Selenium Run Times    stackoverflow.com

I'm trying to figure out what the syntax is to record the times it takes to run a test script in Selenium IDE. How do I record the start and end ...

22. service that takes xxx.1.2.3.4.theservice.com and resolves to IP 1.2.3.4    stackoverflow.com

Does anyone know of a free service that's out there that takes xxx.1.2.3.4.theservice.com and resolves to IP 1.2.3.4? I need this so that I can launch ec2 boxes and point my selenium ...

23. What's the correct format to extract an attribute from an element of some id using selenium.getAttribute()?    stackoverflow.com

I've tried tracking down the appropriate syntax to extract an attribute using selenium.getAttribute(someXPath), and while I've come across many examples, nothing seems to work. From what I can tell, standard xpath ...

24. How do I test modal dialogs with Selenium?    stackoverflow.com

I'm getting started with Selenium IDE and trying to test a webapp that's full of model dialogs (window.showModalDialog). Recording the test seems to work (except there's nothing in the log ...

25. How to test functionally that something should happen at given time?    stackoverflow.com

I'm writing a web application which contains a kind of schedule. After a certain action, the schedule is updated and when the user visit the page that day something happens. Any ideas ...

26. Selenium RC locators - referring to subsequent elements?    stackoverflow.com

When there is more than a single element with the same locator in a page, how should the next elements be referenced? Using Xpath locators it's possible to add array notation, e.g. ...

27. Selenium - getBodyText() return empty string    stackoverflow.com

I'm trying to save the whole html page with getBodyText into a String and then write it to a file (.txt). However when I check the file, it's empty. Here's my ...

28. Resources for learning Selenium    stackoverflow.com

I intend to test a web application with Selenium. I am think of carrying out a test with remote not Selenium IDE or carrying out a test on the same server ...

29. Load properties before a test    stackoverflow.com

I am writing a set of tests to perform equivalency of web pages. The only differences (declaratively in the test) are the URLs. I'd like to do this by somehow ...

30. How do I set this value for selenium selenium.useXpathLibrary("javascript-xpath");?    stackoverflow.com

I'm using selenium and I need to change or make sure my instance of selenium is using this XPath library. Where do I configure the line selenium.useXpathLibrary("javascript-xpath");? Which file is ...

31. I want to run Selenium test case file from command line    stackoverflow.com

When I use Selenium IDE that is extension of Firefox. After that I save some test case from Selenium IDE. Now I want to use command line to run this test case file. I ...

32. Selenium to do automated smoke testing on an interval    stackoverflow.com

I've actually looked through Selenium questions on here and didn't find quite what I was looking for. Basically I have about 10 "use cases" for smoke testing my site. Basic things ...

33. Parametrize with Selenium    stackoverflow.com

I'm learning selenium these days. Can someone tell me how to parametrize a web application for testing in selenium?

34. Use of 'ClickAt ' selenium comand    stackoverflow.com

I'm confuse with the difference between 'Click' & 'ClickAt' command in selenium. & need to know where i can use 'ClickAt' command ?

35. selenium.captureEntirePageScreenshot does not work but selenium.captureScreenshot works    stackoverflow.com

I'm running Selenium with TestNG using Eclipse and Selenium RC. I used the command:

selenium.captureEntirePageScreenshot("\\test.png","");
but got the following error:
com.thoughtworks.selenium.SeleniumException: ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error details ...

36. How to get the full source of a link using selenium    stackoverflow.com

I'm using selenium RC and want to get all the attributes and all. Something like:

link = sel.get_full_link('//a[@id="specific-link"]')
and the result would of:
print link
would be:
<a id="specific-link" name="links-name" href="url"> text </a>
Is this possible? thanks

37. Is Selenium platform specific?    stackoverflow.com

Is Selenium paltform specific. If yes then how can I develop a cross-platform specific application with it by first identifying the platform and then call the platform-specific selenium routines.

38. Selenium - dialog box    stackoverflow.com

When the browser launch is initiated by SeleniumRC, a dialog box always comes to ask for username/password to login to our proxy server (however, it is prepopulated with username/password, all has ...

39. Is Selenium a good piece of testing software to use?    stackoverflow.com

On my last project, I created some test cases through Selenium, then automated them so they would run on every build launched from hudson. It worked ...

40. Selenium's Open function waits until what?    stackoverflow.com

When I call the Open("[some URL]") method in Selenium, it waits until all resources (images, CSS, JS) are downloaded. But how does it know that the browser is done requesting ...

41. Using Selenium for selecting an option on a select with optgroup    stackoverflow.com

I'm trying to select a value in a select element. I'm using Selenium RC (Java) to run the test cases. I understand that the code for selecting a value is given ...

42. Selenium RC and input control events    stackoverflow.com

We have web ui project in MVC and for automated testing we are using Selenium, its a brilliant tool. But I am facing some problem in raising events with Selenium. Scenario: I ...

43. Selenium Test Commandline    stackoverflow.com

How do i post the results to a URL via the "selenium-server.jar"

java -jar selenium-server.jar -htmlSuite "*firefox" "https://www.myserver.com/rc/" "/selenium/Tests/TestSuite2.html" "http://myserver.com/readSeleniumResults"

chrome://src/content/TestRunner.html?auto=true&multiWindow=true&defaultLogLevel=info&baseUrl=https%3A%2F%2Fwww.myserver.com%2Frc%2F&resultsUrl=http://localhost:4444/selenium-server/postResults&test=http%3A%2F%2Flocalhost%3A4444%2Fselenium-server%2Ftests%2FUI_TestSuite2.html
I would like the &resultsUrl to be "&resultsUrl=http://myserver.com/readSeleniumResults"

44. Typing enter/return key in selenium    stackoverflow.com

Looking for a quick way to type an enter or return key in Selenium. Unfortunately the form I'm trying to test (not my own code so I can't modify) doesn't ...

45. Selenium use a Tree class for expanding/clicking a node in a tree made with RichFaces    stackoverflow.com

In Selenium RC I need to expand/click a node in a tree made with RichFaces. I have done a TreeUtil class, but at this point I am not sure how to ...

46. Is there a way to check layout with selenium RC    stackoverflow.com

I want to check the layout of the page. Something pretty simple - that a certain div is displayed above/below/left/right of another div Is it possible to do this kind of stuff? ...

47. Selenium typekeys issue    stackoverflow.com

I am using typekeys to type something and to enable a button in my application. But whenever the typekeys command is executed in fiefox help of the firefox gets opened. Please can anybody ...

48. Selenium get_html_source    stackoverflow.com

I am trying to scrape a verizon wireless phone page using selenium at the following address: http://www.verizonwireless.com/b2c/store/controller?item=phoneFirst&action=viewPhoneOverviewByDevice&deviceType=Phones&sortOption=priceSort&lid=//global//phones+and+accessories//cell+phones I get to the page and use get_html_source to save the page with no ...

49. Running Selenium headless without using xvfb    stackoverflow.com

I'm trying to run Selenium headless (without the browser appearing). Other questions have pointed to xvfb as the tool to do this. However, it appears highly unstable, crashing all the time, ...

50. Selenium-rc: Is there a way to send a buffer of requests    stackoverflow.com

Lets say I have a list of links and want to click a link at random:

<div id="divA">
   <a> first link </a>
   <a> second link </a>
   ...

51. Mercury Test Director vs. Selenium: Compare and Contrast    stackoverflow.com

The Question: What are the benefits and disadvantages of TestDirector over Selenium Some background: I have a little experience with Selenium, but I'm told my company owns an enterprise license of TestDirector ...

52. How to create nested test suites for Selenium?    stackoverflow.com

I need to create a nested test suite in Selenium that will run in the Selenium IDE or the Selenium TestRunner. This is basically the structure that I'm trying to achieve:

MasterTestSuite.html
 ...

53. Selenium locator for     stackoverflow.com

With ASP.NET the tag IDs are pretty volatile so to make my tests more robust I want to locate elements by their label texts. I have played some with WatiN and ...

54. Selenium: How to stop RemoteRunner.html from getting invoked    stackoverflow.com

I am using selenium for one for my Java applications on linux. The application invokes a mozilla browser, fills login details (username and password), and then submits the form. ...

55. Selenium: How do you delete a character from a textbox    stackoverflow.com

I'm trying to simulate a user deleting a character from a textbox. This textbox fires many JS events, I've had much trouble typing (or typeKey-ing) in ift because of this. My latest ...

56. Problem running Selenium-RC    stackoverflow.com

I have Selenium running under Cruise Control to test our site once a day. On Saturday Selenium started throwing the error below. No code was changed between the tests running sucessfully on ...

57. How do I use Selenium to verify the value in a form row?    stackoverflow.com

I have an HTML-based data entry form that submits data to a server. Before submission, the form's row labeled 'RecordNumber' should be blank; after submission (to a server loaded with ...

58. Does Selenium or WatiN have property like QTP's Setting.WebPackage("ReplayType") = 2?    stackoverflow.com

There are some buttons and menus in the application I am testing that require actual clicks to send all the information through and FireEvent style clicking does not seem to cut ...

59. Can webrat browser-automation tests be parallelised?    stackoverflow.com

Is there a facility similar to SeleniumGrid that I can use to run webrat (or other, similar framework) browser automation tests in parallel across a farm of coordinated agents? Coordinated via TeamCity ...

60. SeleniumRC FF3.5.x-3.6 lock file troubles    stackoverflow.com

With Selenium RC 1.0.1, and FF3.5.x or 3.6 I keep seeing this error when trying to run any test,

Failed to start new browser session: Unable to delete ...

61. Selenium - Problem testing a date field    stackoverflow.com

I have a page that has an image which when clicked shows a calendar. I've put an example of it here --> http://www.dotvibes.com/test/test.html Clicking on the image shows ...

62. Selenium-Server: Weird message when using browserReuseSession flag    stackoverflow.com

I get the error message:

sel_<NUMBER> resultHolder sel_<NUMBER> unexpected response: OK,..
It seems that the server is stuck after this message occurs. Why is this happening and how to solve/prevent it? I've never seen ...

63. How do I click/check a specific radio button if it is a column in an html table using Selenium RC?    stackoverflow.com

I have a radio button that is the first column of many rows in an html table. The second column of each row is the corresponding text to each radio ...

64. How do I retrieve the text in a table column using Selenium RC?    stackoverflow.com

I have a table that looks like the following:

<table class="theClass">
<tr>
   <td class="anotherClass"><strong>Label1:</strong></td>
   <td colspan="3">Value1a<br/>Value1b<br/>Value1c</td>
</tr>

<tr>
   <td class="anotherClass"><strong>Label2:</strong></td>
   <td colspan="3">Value2a<br/>Value2b<br/>Value2c</td>
</tr>

<tr>
   <td class="anotherClass"><strong>Label3:</strong></td>
  ...

65. Why is Selenium RC so slow?    stackoverflow.com

For some time I have been investigating Selenium RC in order to do functional testing of my web application. I have now found a test strategy that is so effective, that ...

66. How long it will take to work in selenium rc including all type of process    stackoverflow.com

how to configure selenium rc? how long it will take to configure? how to work with selenium rc? what are the pre-requisties for working selenium rc?

67. How to give test report using selenium Rc?    stackoverflow.com

On exporting the test cases that prepared using IDE by junit format and using java platform, browser and selenium window closes on running the test case. If i want to track ...

68. Not able to detect a href component in Selenium RC    stackoverflow.com

I have the following link 'Test' in my application. <div class="tabUnselectedText" align="center"> <a href="javascript:renderPage('mainForm:consoleBeanId.3','Test' , 'testdetails.faces');">Test</a> </div> When I tried Selenium IDE it gives me following code. The same code does not work ...

69. Selenium tests: html vs code?    stackoverflow.com

Is it better to write/record selenium tests in html format and run them directly in the server with "-htmlSuite" or to write the tests in java/C#/... and run them in the ...

70. Selenium RC cannot test on compressed html    stackoverflow.com

In order to have the fast speed of website, the web sever compress (gzip) the html files before sending to our clients. When running selenium tests, it shows a pop-up saying: You ...

71. Selenium onChange not working    stackoverflow.com

I have tried a number of things to try and get Selenium to pick up an 'onchange' event from a drop down menu, none of which has worked. The offending HTML is:

<select ...

72. How to generate a report for particular XHTML tag/attributes?    stackoverflow.com

I wan to check whole site's <img> image's for alt text. I want to get a report of, What is written in alt text or alt is defined or not from ...

73. How to verify whether Site seal logo is preseneted in my site or not by selenium?    stackoverflow.com

I have to capture Site seal. Which provided by third party for my site has been validated and is secured for online transactions. I couldn't capture its element id. If i ...

74. Selenium or Rational Functional Tester    stackoverflow.com

What do you recommend for testing purposes in Java environment (Selenium or Rational Functional Tester)? Could you write some pros and cons? I heard about MicroFocus TestPartner, do you have experience ...

75. Selenium and ckEditor    stackoverflow.com

Does anybody know How I can get the ckEdtior to work with Selenium. I'm not able to get the focus to the "html edit" field or change the value of the html ...

76. How can I do Database testing with Selenium?    stackoverflow.com

Does Selenium supports Database testing? If yes, how to do it?

77. How do I test which element has the focus in Selenium RC?    stackoverflow.com

The title says it all. How do I test which element has the focus in Selenium RC?

78. Using user-extension.js in Selenium RC    stackoverflow.com

I am having difficulty in using the extensions.js in Selenium RC. My Java Code is,

import com.thoughtworks.selenium.*;
import junit.framework.*;
import java.lang.String;

public class javaErrorCheck extends SeleneseTestCase
{
    Boolean Result=false;
    String ...

79. How to return a whole column with Selenium?    stackoverflow.com

I know that Selenium has a built-in method getTable("tableName.row.column") can return a cell conveniently. However how can I return a whole column? I've tried getText() directly, however only the first cell was ...

80. How to Run Selenium code in webtest?    stackoverflow.com

I am new to webtest and I read that it is possible to record script in selenium and then run it via webtest/fitnesse. I have got webtest and selenium installed and ...

81. selenium scripts    stackoverflow.com

I want to use selenium scripts to click on a bunch of links on my webpage one by one, each click results in a page refresh. However selenium doesn't ...

82. How to generate a random number    stackoverflow.com

I have to create a test for homework using Selenium IDE and create a scenario to generate a random number. I'm stuggling with what I need to type and what field ...

83. Are you testing against Chrome?    stackoverflow.com

I'm curious to know who is testing against Chrome. I am mainly because it has become my primary browser, so all development is taking place on Chrome, then i test with IE ...

84. selenium rc captureEntirePageScreenshotToString triggers FileNotFoundException    stackoverflow.com

I'm using selenium rc to do functional website testing and I've recently experienced a mysterious issue with safari and opera. When a test fails I make a screenshot using the captureEntirePageScreenshotToString ...

85. Tellurium vs Selenium : Compare    stackoverflow.com

I am using selenium for sometime and doing good with it. I would like to try Tellurium. Searched and find only few questions about that. I would like to know the ...

86. How to iterate through table using selenium?    stackoverflow.com

I have a table called UserManagement that contains information about the user.This table gets updated whenever new user is created. If i create two users then i need check whether ...

87. Is the order of attributes in a certain tag releveant?    stackoverflow.com

Is the order of attributes in a certain tag releveant. Specific case: This is from a selenium testfile. Given a testcasse

<?xml version="1.0" encoding="UTF-8" standalone="no"?><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
<link rel="selenium.base" href="http://10.9.10.100"/>
<title>SQL-Injection</title>
</head>
<body>
<table ...

88. TestCase scripting framework    stackoverflow.com

For our webapp testing environment we're currently using watin with a bunch of unit tests, and we're looking to move to selenium and use more frameworks. We're currently looking at Selenium2 + ...

89. Selecting a date value from a dynamically generated listbox    stackoverflow.com

I have a listbox whose values are generated dynamically. The list box contains months and years and when generated looks like this.

<select name="arr_dtm_mon_year" tabindex="150" class="input">
    <option value=""></option>
 ...

90. Selenium waitForPopup with dynamic windowId?    stackoverflow.com

When using Selenium how can I wait for a popup window if its id is dynamically generated? For example:

selenium.click("link=mylink");
selenium.waitForPopUp("popup072815372337691199");
Obviously I cannot hardcode the window id in my source code. Any hints?

91. Generate and Save the files automatically to my local disk using Selenium    stackoverflow.com

I have a Report Generator which is an intranet web application generates some reports. There are about 100 reports. Those reports are of PDF and Excel type. And I want to ...

92. using Selenium: how to use output from one test as input to another test    stackoverflow.com

I'm a Selenium n00b... it's clear how easy it is to run a test and verify a particular response, but how can I take a value from one response ...

93. Setting Selenium RC speed via command line    stackoverflow.com

I'm using SeleniumRC to run some selense tests via command line. This works mostly fine, but some tests are failing because the execution speed is too high. How can I set ...

94. How can i programmatically control the starting and stopping of Selenium RC    stackoverflow.com

At the moment i use selenium using HTMLSuite. The command i use to start the server and run the a testsuite is shown below

java -jar selenium-server.jar -htmlsuite "*iexplore" "http://localhost:8080" "C:\test\testsuite" "C:\test\result_%Yr%%Mth%%Day%.html"
I ...

95. How do I test which element has the focus in Selenium RC?    stackoverflow.com

the question like the title

96. how to repeat Selenium test script forever    stackoverflow.com

I need to re-run my Selenium test script for unlimited number of times (infinite loop) - how I do that and what language should I use ? thanks

97. How do I locate a table row based on the text of a cell in Selenium?    stackoverflow.com

How do I locate a table row based on table cell data using the following HTML snippet:

<table id="BetaCustomersTable>
  <s:iterator>
    <tr>
      <td class="userTabletd">
 ...

98. problem in using selenium-maven-plugin    stackoverflow.com

I'm using selenium-maven-plugin. http://mojo.codehaus.org/selenium-maven-plugin/ I have tried at headless linux with xvfb goal. Below execution progress...

  1. xvfb
  2. start-server (Selenium RC server)
  3. run unit test
  4. stop-server
But, at 3, not working...
16:34:50,532 INFO  [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. ...

99. selenium how to verify character font?    stackoverflow.com

the problem as the title.

100. Validate data driven testing    stackoverflow.com

Hi I got the code for getting the data from excel and den using in selenium. My problem is that when i give invalid data in the text boxes those are also getting ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.