selenium 3 « 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 3 

1. Selenium for Availability Monitoring    stackoverflow.com

My company monitors performance and availability of websites and mobile applications via functional testing in the cloud; we're looking to expand our technology to include Selenium tests. We use RoR ...

2. How do you handle testing with Selenium when you are running AB tests?    stackoverflow.com

We just started using Selenium to test our site and its working really well, except that it breaks 1/2 of the time when we introduce an AB test. How do you ...

3. Selenium RC is not running properly please help on this?    stackoverflow.com

I copied google_for_selenium_rc.htm (which really wanted to execute) into c:\ide_scripts I am running the below comment. java -jar selenium-server.jar -htmlSuite "*googlechrome" "http://www.google.com" "c:\ide_scripts\suite.htm" "c:\ide_scripts\result.htm" But it is not playing the script... Please help where ...

4. have any one used * custom option in selenium rc    stackoverflow.com

i have 2 firefox version and i need to start particular version using custom is that possible.

5. What are the limitations of Selenium    stackoverflow.com

Could you please let me know the limitations od Selenium IDE, Selenium RC, Selenium GRID Thanks all for the help

6. Selenium in mulithreading    stackoverflow.com

public static ISelenium s;
I access the s object through multiple threads but doing so causes problems and errors. It looks like you cannot access the selenium object twice. Whenever I try to ...

7. Selenium RC doesn't save screenshot on VMWare    stackoverflow.com

I am running a Selenium RC (selenium-server-standalone-2.0b2.jar) on a VMWare (Workstation 7.0.0 build-203739) Virtual Machine (Windows XP Professional SP3). I run tests on this selenium server using Bromine. One of the tests ...

8. Is there any way to find out if selenium is running using code?    stackoverflow.com

I want to find out if selenium is running and if it isn't then call a bat file to start it. Is it possible to find out if selenium standalone ...

9. Selenium getText behaviour    stackoverflow.com

I have an html file which has to be parsed using selenium. I need to extract a the text contained in a div tag which has an unique id. The original file is ...

10. Selenium RC is ignoring my timeout    stackoverflow.com

I have a simple Selenium test that runs against a remote Selenium Server instance. I'm trying to test for page performance, and some pages can exceed the max execution time, and I'm ...

11. how to run methods sequentially by Selenium RC and TestNG    stackoverflow.com

I have a java class containing 3 methods: public class Test{ public void orange(){ } public void apple(){ } public void mango(){ } } I want to execute 3 methods mentioned above sequentially/orderly as ...

12. How to measure utilization of a device with Selenium?    stackoverflow.com

Does anybody knows whether it is possible to measure utilization of a server CPU with Selenium RC? I need to know service demand on the devise. Thanks in advance.

13. Trying to run selenium 2 scripts remotely    stackoverflow.com

I have selenium 2 web driver scripts up and running and I now want to tie those into my continuous integration process. I have 2 physical machines set aside for selenium ...

14. Difference between verifyText and verifyTextPresent in Selenium    stackoverflow.com

I'm trying to build a test using Selenium IDE and I want to check that a certain <div> block contains the correct text. What assertion should I use? What is the ...

15. Is there any limit to the number of Selenium RCs connected to a Selenium Hub?    stackoverflow.com

Does anybody have experience using 20/50/100 RCs connected to a single Selenium Hub? I'm thinking of a centralized hub that multiple team could use together. I heard that after 20 RCs, performance ...

16. What is the difference between DefaultSelenium and RemoteWebDriver?    stackoverflow.com

Is RemoteWebDriver a replacement for DefaultSelenium in Selenium 2.0 or can the two be used in conjunction?

17. Selenium how to select an object by class    stackoverflow.com

I have a web page with a form and has a field that uses the jquery autocomplete function. enter image description here This is how the HTML renders after a user ...

18. Need help in opening an email from the inbox and taking a screenshot of it using SELENIUM RC    stackoverflow.com

I could able to login to ISPs, gmail in particular. Now i need to open an email from the inbox and taking a screenshot of it using SELENIUM RC. Please suggest with ...

19. Looping in selenium    stackoverflow.com

I recorded one script using Selenium IDE which contain clicking on a link and now i want to add loop to run same script multiple time, for this i am converting ...

20. Coverage analysis for Functional Tests    stackoverflow.com

In the project that I am working on, we have functional tests written over Selenium. The application undergoes functional changes with each feature release. Is there a tool / mechanism that ...

21. Selenium and SVG    stackoverflow.com

I have a web application that uses an SVG guage in it. this gauge displays health status of my grid (several machines). this gauge has 3 colors(green = good , yellow = ...

22. Write a simple function function in selenium    stackoverflow.com

I am Fresher in Selenium,I have lots of doubt about selenium functions Iam using selenium RC with java and eclipse. I need to write one simple function for add two numbers Where i will ...

23. Is there any way to start with a POST request usign Selenium?    stackoverflow.com

I'm trying to start a Selenium test with a POST request to my application. Instead of a simple open(/startpoint) I would like to do something like open(/startpoint, stuff=foo,stuff2=bar) Is there any way to do ...

24. selenium RC doesnt run the whole test suite    stackoverflow.com

I'm trying to run an html testSuite with Selenium RC. The browser starts, the first test runs, and it stops. It doesnt continue to the second test case. I named both ...

25. how to deploy war file in selenium rc    stackoverflow.com

I have combined all selenium script and i have created war file for that, pls let me know how to deploy war file using cruise control. Now i want to run the ...

26. Alternatives to SauceLabs OnDemand Selenium service    stackoverflow.com

Does anyone know of any decent alternatives to SauceLabs OnDemand Selenium service?

27. Selenium-Server and Selenium to test a service that is NOT web enabled    stackoverflow.com

Our development team is developing a service (NOT web enabled) to support our web enabled application. I test the web part with Selenium/JUnit/Eclipse/Java. I was wondering if there is ...

28. assert vs. verify in Selenium    stackoverflow.com

The checks selenium performs usually come in two flavours: assertFoo and verifyFoo. I understand that assertFoo fails the whole testcase whereas verifyFoo just notes the failure of that check and lets ...

29. Difference between Tellurium and selenium 2    stackoverflow.com

In which scenarios should I use Tellurium against Selenium? From the basic reading, the only major difference I found is that Tellurium encapsulates the UI with the module concept. But selenium ...

30. Is there a unicodedata module for IronPython?    stackoverflow.com

I'm trying to get the generic sample code for the selenium2 Sauce OnDemand service working with IronPython, for some test work I'm doing, and I've run into a problem I can't ...

31. How to use testng.xml    stackoverflow.com

Hi i am new to selenium, now i want to run my test suite using selenium rc and eclipse Ide i have using ant when i execute, for that time i ...

32. How to pick the particular id from table data    stackoverflow.com

I want pick the particular id from table, table have 10 rows and 7 columns,and i am using selenium rc and eclipse ide, when i ran below code its giving below ...

33. selenium code to select radio button    stackoverflow.com

Am doing automation tesing using selenium, i need help in regarding how to select radio button.If possible help me with selenium java code.

34. is not able to run the selenium tests    stackoverflow.com

[TestNG] is not able to run the selenium tests. This is my testng.xml

<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >

<suite name="Suite1" verbose="1" >
  <test name="Regression1"   >
    <packages>
  ...

35. selenium 1 text box autofill    stackoverflow.com

  1. I'm trying to do autofill for google search
  2. Below is code i tried based on google search results and some blog entries
  3. I'm only posting the code to type in text
    selenium.open("/");
    selenium.type("q", "banga");
    selenium.typeKeys("q", ...

36. what is major difference between selenium1 and selenium2    stackoverflow.com

what is major difference between selenium1 and selenium2

37. Testing a "Dojo" web application with Selenium    stackoverflow.com

Has anyone done some extensive automation with Selenium and a Dojo-heavy web app? I'm looking for any issues or problem that you might have run into or issues related directly to ...

38. How to verify links    stackoverflow.com

How to verify links are there or not? eg. I have 10 links in a page,i want to verify the particular link Is it possible? I am using selenium with java Can you help ...

39. Testing the validation of a text box using Selenium    stackoverflow.com

I am trying to test a webpage using Selenium and NUnit. One of my test cases entails the validation of text boxes. Using Selenium and C#, I am able to retrieve ...

40. Selenium 2.0 API    stackoverflow.com

We have started off our Web Automation with Selenium RC and now reworking on it to change it to Selenium API. Below are the things which are tuff to handle.

selenium.Mouseover(xpath);
selenium.Isvisible(xpath);
selenium.waitforpageload(seconds);
Does ...

41. StoryTeller and Selenium working together    stackoverflow.com

just curious has anyone implemented any solution using StoryTeller and Selenium together. How do you do it and what are their roles with respect to the continuous integration.

42. Selenium: intermittent "element not found" issues    stackoverflow.com

Every now and then my selenium tests randomly fail with an "element X not found" error message. I do a simple select by ID, eg.

click('sideBar_queryButton')
When I use the dom inspector, the ...

43. how to select few words from text area in selenium rc    stackoverflow.com

steps: 1. i uploaded file using browse option. 2. uploaded file content displayed in non-editable format 3. now i have to select few words. for this i used mouseMoveAt (100,200) mouseDown() mouseMoveAt (150,250) mouseMoveUp(). This is ...

44. How to handle Mouseover in Selenium 2 API    stackoverflow.com

String strPrimaryNav = "MEN";
String strSecondaryNav = "Shoes";
String strTertiaryNav = "Golf";

driver.findElement(By.linkText(strPrimaryNav)).click();

WebElement weSecNav = driver.findElement(By.className("secondaryButton").linkText(strSecondaryNav));

Mouse mouse = ((HasInputDevices) driver).getMouse();
mouse.mouseDown(((Locatable)weSecNav).getCoordinates());
//just trying with for loop as the tertiary popup disappears quickly and hence getting ElementNotVisible ...

45. Selecting popwindow in Selenium using Index    stackoverflow.com

Is there any possibility of selecting windows based on Index as done in Iframes?

Selects a frame within the current window. (You may invoke this command multiple ...

46. NoClassDefFoundError: org/apache/http/HttpEntity in Selenium for FirefoxDriver    stackoverflow.com

I am not trying to do much here. I am just trying to run an example given in Selenium website, to just open Google page and enter a search string in the ...

47. Selenium problem accessing elements within frames    stackoverflow.com

I'm having problems verifying elements in a page made up of framesets and frames. I'm using the code:

    selenium.selectFrame("relative=up");
    selenium.selectFrame("topFrame");
But it fails with the ...

48. selenium drag and drop/re order    stackoverflow.com

I used the following code (after using selenium.draganddrop), but it didn't work: i also asserted the xpath value in order to check whether it is correct? (i checked in firebug too) assertTrue(selenium.isElementPresent("//*[@id='task_264282000000221235']/td[4]/div[1]/div[1]/a")); assertTrue(selenium.isElementPresent("//*[@id='task_264282000000221243']/td[4]/div[1]/div[1]")); selenium.mouseDownAt("//*[@id='task_264282000000221235']/td[4]/div[1]/div[1]/a","18,22"); selenium.mouseMoveAt("//*[@id='task_264282000000221243']/td[4]/div[1]/div[1]","18,22"); selenium.mouseOver("//*[@id='task_264282000000221243']/td[4]/div[1]/div[1]"); selenium.mouseUpAt("//*[@id='task_264282000000221243']/td[4]/div[1]/div[1]","18,22"); ...

49. selenium RC- change default port 4444 port .if the port is busy at runtime    stackoverflow.com

How to handle the scenario while running SELENIUM RC.If we get the default port 4444 is busy.

50. useragent googlebot using selenium    stackoverflow.com

I'm trying to use selenium to invoke my webpage as googlebot. below is my code, but it does redirect the traffic to view webpage as googlebot...Can someone help me to direct ...

51. Im testing with selenium on ubuntu. Test in invisible workspace    stackoverflow.com

Im testing my code with selenium RC. And every time when i run tests, selenium starts a browser in my active workspase, and i don't like this way. how can i ...

52. How do I run Selenium in proxy injection mode?    stackoverflow.com

I have Selenium RC stand alone server 2.0b3 running on Win XP, with IE 6. I'm having trouble running Selenium in proxy injection mode. I start the server like ...

53. How to locate an element in Selenium using the text in "onclick" attribute of an anchor tag?    stackoverflow.com

There are links in the page like this:

<a id="random" onclick="someFuction(random, <an_int_value>, random)" href="#"></a>
Actual code is in the following form:
<a id="random" onclick="someFunction(random, 1, random)" href="#"></a>
<a id="random" onclick="someFunction(random, 2, random)" href="#"></a>
<a id="random" onclick="someFunction(random, ...

54. Drag and Drop with Selenium into a Scrollable Area    stackoverflow.com

I've some problems with selenium and firefox 3.6.17. I'm trying to drag a item from a list to a specific field into a scrollable area, if the scroll is at the top, ...

55. Selenium + TestNG testing a serie of webpages    stackoverflow.com

I'm just starting with TestNG and Selenium I want to perform a registration test in a collection of webpages. I've writen a Register class with the following methods

@Test( dataProvider = "WebSites", groups = ...

56. Selenium RC unable to find element when using contains with bracket '(', ')'    stackoverflow.com

When using css selector with contains in selenium 1.0 (using java), if a '(' is preceded by a space immediately, selenium fails to find the element. For '#', i found that simply ...

57. Selenium 2.0 how to get text from each cell of the html table    stackoverflow.com

I am new to selenium. I used to be a QTP developer before this. In QTP traversing through a html table in a webpage is really easy. In Selenium 2.0, I have no ...

58. How can I run a selenium test every 5 minutes?    stackoverflow.com

I have created a Selenium test using the Firefox Addon. Now, I want to make it run every 5 mins. How can I do that? Thanks!

59. [SeleniumRC]Cannot call method 'indexOf' of undefined in Chrome    stackoverflow.com

Please help me to fix this issue (Cannot call method 'indexOf' of undefined in Chrome). I'm running selenium using .NET framework and I don't see any overload method in selenium.start to ...

60. Does selenium work with video?    stackoverflow.com

I have some videos and i want to test their with automation Can you tell How does selenium work with video? How does he recognize it. Thanks!

61. Can selenium RC travels different domain in one test    stackoverflow.com

If there is a one case that on open a yahoo.com page through selenium and on the click on any link on the home page of www.yahoo.com .it takes me to ...

62. Can HP QTP & FuncUnit/Selenium coexist, or are they mutually exclusive?    stackoverflow.com

QTP seems robust and integrated withother systems.Funcunit/Selenium seem easier/quicker to setup and run for developers. Is it either-or, or is each tool betterat differentaspects of programming? Anyone had experience with using both ...

63. Locators preference in Selenium RC    stackoverflow.com

I need help on choosing locators while writing selenium script... what are the differences between using XPath, CSS, identifiers? Is XPath preferred over the others? If so, why?

64. Selenium cursor focus on field    stackoverflow.com

I'm creating tests (in Firefox) for a web app. Depending on what field the cursor is over, a different help screen will appear. But when creating tests for those help screens, i ...

65. Help with seleniums carriage return    stackoverflow.com

I need to select an item from a list and then simulate hitting enter in selenium code. I heard about using:

selenium.keyPressNative("\13");
to simulate it, but it thought that \13 was the male ...

66. Element link not found in Selenium    stackoverflow.com

I am executing a simple recorded script in Selenium , in which i just search a page in Google and then click it , but when Run that recorded script it ...

67. Please provide selenium rc code    stackoverflow.com

Possible Duplicate:
XPATH or css in selenium RC
I am trying to automate the below scenario in selenium rc using java: 1.open google page 2.enter software in search ...

68. How do I verify that an element does not exist in Selenium 2    stackoverflow.com

In Selenium 2 I want to ensure that an element on the page that the driver has loaded does not exist. I'm including my naive implementation here.

    WebElement ...

69. ReportNG does not provide any report    stackoverflow.com

I heard that ReportNG create better report than TestNG's normal report. The problem here is i could not able to create a report thru ReportNG. I am using Eclipse and i ...

70. Paypal-Sandbox buying with Selenium RC    stackoverflow.com

I'm trying to buy something at Paypal-Sandbox with Selenium RC (Java), but it doesn't work. I tried it with Selenium IDE (Firefox AddOn) and it did work. I changed the viewing and ...

71. Selenium - "Locator_Detection_Failed"    stackoverflow.com

I'm having error when it already comes in size of the shapes in dropdown.. see the attached image
http://img4.imageshack.us/img4/510/locatordetectionfailed.png

72. Selenium: delete contents from a textbox    stackoverflow.com

Through selenium. how to delete contents from textbox. I have to delete the last 2 characters from text box using selenium command. Ex.ABCD to AB.

73. Selenium: How to get x and y coordinate position    stackoverflow.com

How to get x and y coordinate. Like using selenium method mouseMoveAt(java.lang.String locator,java.lang.String coordString), I have to set coordString. Example : coordString - x,y position (10,20).if i write 10 for x and ...

74. Selenium and HTTPUnit    stackoverflow.com

What's the pro's and cons for both and why should I use either of them for functional testing? Regards, Jonas

75. Selenium using conditional statements    stackoverflow.com

I just started looking into selenium for automated testing for the past few days and am getting pretty stuck. I've been looking for documentation on this but haven't found anything ...

76. Selenium:With selelenium RC can we scroll the scrollbar up or down    stackoverflow.com

Can we use Selenium RC to move the browser's scroll bar up or down? Thanks.

77. Manual test conversion to Selenium RC    stackoverflow.com

There is manual Test case. We need to check the following. Action Check Promo Links. Expected Results Up to four links are displayed at the bottom of the app. The links are divided by bars "|" HTML ...

78. Testng BeforeSuite runs only one test class    stackoverflow.com

I have the following testng.xml

<test name="CommonReportingTests" preserve-order="true">
<classes>
   <class name="com.blah.ReportRunTests">
        <methods>
            ...

79. Selenium: RuntimeException-result was neither 'true' nor 'false'    stackoverflow.com

I run Selenium as part of a JUnit test for a site, and once in a while, I see this failure: RuntimeException-result was neither 'true' nor 'false' I cannot reproduce ...

80. Add custom header in Selenium and Sauce Labs?    stackoverflow.com

I use Selenium and Sauce Labs for testing. Is there a Selenium property to add a custom header or append a string to the user agent (like "using Sauce Labs")? I want to ...

81. How to get started with Selenium 2?    stackoverflow.com

I've read here and there that we should now use Selenium 2 (WebDriver if my understanding is right). I'm not talking about Selenium IDE which is really easy to use. I've read ...

82. Selenium: How to wait for options in a select to be populated?    stackoverflow.com

I am using Selenium for the first time and am overwhelmed by the options. I am using the IDE in Firefox. When my page loads, it subsequently fetches values via an JSONP ...

83. selenium.mouseOver does not open the menu    stackoverflow.com

I have an application where I need to do mouseOver over a particular menu. The issue is that selenium.mouseOver is not able to open the respective menu, it just seems to ...

84. Unable to handle confrimation box with selenium RC    stackoverflow.com

i am trying to press the ok button from a confirmation box like this (i added Thread.spleep so i checked the button is pressed and the confirmation box is shown)

selenium.chooseOkOnNextConfirmation(); ...

85. Selenium: Part of text present    stackoverflow.com

Is there a way to verify only part of text present? If there is a text "Warning: A15P09 has not been activated." I need to verify the text is present. However, 'A15P09' ...

86. How to simulate that someone is "watching" the monitor?    stackoverflow.com

I am automating web-application tests that are driven by Selenium architecture in Windows VMs, connecting via Windows Remote Desktop. It became known to me that Flash/SWF and other in-browser elements ...

87. Cannot register remote control to Selenium Hub    stackoverflow.com

I got this problem when I tried to register the remote control to Selenium Hub. Here is the ip info: RC: 172.16.0.90 HUB: 172.16.0.121 Step: 1. "ant launch-hub" on Hub Machine 2. "ant -Dport=5555 -Dhost=172.16.0.90 -Dhuburl=http://172.16.0.121:4444 lanuch-remote-control" ...

88. Difference between selenium.selectFrame() and selenium.selectWindow()    stackoverflow.com

I've been struggling with the difference between the following commands, used while accessing widgets contained within iframes:

selenium.selectFrame("widget0");

selenium.selectWindow("name=widget0");
In the past (prior to IDE v1.0.12), I have been using these interchangeably, preferring the ...

89. Save a test suite as a single file in Selenium    stackoverflow.com

Is it possible to save a test suite as a single file as opposed to a group of files when using Selenium? Normally the test suite file is just a list ...

90. How to resuse selenium test file in another selenium test    stackoverflow.com

Is there way where I can use one selenium test file in another test file like an include directive or something? I do not want to create duplicate files, there is only ...

91. Selenium not recording basic authentication    stackoverflow.com

I know selenium do not understand windows GUI and thus do not record basic authentication used in various sites. I tried using http://username:password@domain.com in following format:

public void setUp() throws ...

92. Selenium, Siebel and QTP    stackoverflow.com

I am about to start work on a UI automation project for a client who is using Siebel 7.5. I have been looking around and it seems that there is not ...

93. Difference between relative=up, relative=parent, and relative=top in selenium selectFrame    stackoverflow.com

What are the differences between

 Selenium.SelectFrame("relative=up");
 Selenium.SelectFrame("relative=top");
 Selenium.SelectFrame("relative=parent");
Could anyone give me an explanation using examples? I'd appreciate it. Thanks!

94. Selenium open comand ditching URL after slash '/'    stackoverflow.com

I'm trying to open a url with selenium and it is ditching everything that is after the slash.

public void setUp() throws Exception {
    super.setUp();
    seleniumTestClientOne ...

95. How to handle Selenium timeout effectively?    stackoverflow.com

Selenium.WaitForPageLoad("50000"); 
Selenium.Click("title");
Most times when it takes more than 50000, I get Timeout error. I do not want to increase the time. Is there a way to give it something like "take ...

96. Selenium HTML attribute name to assist identifying content    stackoverflow.com

I need to verify using Selenium (or similar framework) that certain HTML content/items are on the page using known unique identifiers. I have control over the generation of the HTML, so I ...

97. Selenium beginner question    stackoverflow.com

I am just trying to understand and learn selenium. I used IDE to record my actions and tried to playback but I am kind of stuck on the first ...

98. Selenium 2.0 TFS Newtonsoft.json problem    stackoverflow.com

I'm using selenium 2.0.3 (from a nuget package) for some browser tests. Which all work fine on my local maching. On our TFS build machine I'm getting the following error when a ...

99. Why is selenium hanging on INFO - Checking Resource aliases, and how do I even debug this?    stackoverflow.com

I'm trying to follow the tutorial here to setup a headless selenium test-run with jenkins. I'm running CentOS 5.6, and I've followed the instructions. Now, when I run this: export ...

100. MS Test .orderedtest file details    stackoverflow.com

I'm using scaffolding to dynamically generate UI tests with MS Test and Selenium. I've generated the selenium tests just fine and want to generate .orderedtest files to order the test. The ...

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.