page « 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 » page 

1. How do you get selenium to recognize that a page loaded?    stackoverflow.com

In certain unknown situations selenium does not detect that a page has loaded when using the open method. I am using the Java API. For example (This code will not produce ...

2. Selenium: How to refresh a page over and over until it contains specific content?    stackoverflow.com

[UPDATE 2: We rendered this question no longer relevant - using the -avoidProxy argument to the Selenium server meant Selenium-RC and our application worked together. So now we can use a ...

3. How to run a script embedded in the page in Selenium IDE?    stackoverflow.com

I'm testing a page with Selenium IDE and want to execute a method already in the page. I've tried getEval(window.name.space.function()) but it just returns window.name is undefined. ...

4. using selenium-rc can i load a page, click a bookmarklet, and fill up the in-page loaded form?    stackoverflow.com

Is there anyway by which I can automate the following steps in Selenium-rc

  1. open a page
  2. click on bookmarklet in browser toolbar
  3. fill up data in the form loaded into the page by said bookmarklet.
If ...

5. Selenium how to get all Xpath's from the page    stackoverflow.com

iam trying to get all object's xpath's from loaded page via selenium something similar to the funkction that selenium allready have: selenium.getAllbuttons(); problem is that i cant use this funkction and work with id's ...

6. Element not recognized on page until a manual click on the page occurs    stackoverflow.com

I am searching for an element on a webpage by using its xpath. The xpath is correct and can find the element ONLY if I manually perform a click anywhere ...

7. How to get Selenium to wait for a transition page to redirect before running an assertion    stackoverflow.com

I have a fairly standard situation: Click a button, it loads a transition page with a progress bar or something, and then that page redirects to the next page, which ...

8. Handling self-refreshing pages from selenium    stackoverflow.com

I have been running into intermittent errors with some java selenium-rc tests which I think are related to a page which has an ajax poll and automatically refreshes when some condition ...

9. How to use selenium to get the CSS value of the test page?    stackoverflow.com

How to use selenium-rc to get the CSS value of the test page ??? for example: get the color of background or get the border size ?? environment: selenium-rc+vs2008+xp+c#

10. Is it possible to test wait time for page access with Selenium IDE?    stackoverflow.com

I want Selenium IDE to fail a test if the time to access a page is more than 60 seconds and log the time it took to access the page. Is ...

11. Element not found until manual click anywhere on page    stackoverflow.com

I've got the following problem: When recording a webtest using Selenium IDE (v1.0.4) every step will be recorded but when I try to replay the tests some buttons won't be found although ...

12. How to click a link that opens a sign in page on another page/window using Selenium IDE    stackoverflow.com

newbie here, i'm trying to get the value of a link using document.getelementbyClass/Name & then navigate to the page the link points to in a different window/tab using Selenium IDE. All ...

13. using xpath or css : How to get something which is selected on page    stackoverflow.com

using xpath or css : How to get something which is selected on page using following html code. in following code, Element1 is selected on page and I wanted to find name ...

14. How do I confirm a given page was displayed after calling ISelenium.open()?    stackoverflow.com

I'm very new to Selenium RC. I'm using .NET (though I don't think it is relevant), I have opened a page, but I want to confirm that the page was ...

15. trouble finding element on page using xpath or css    stackoverflow.com

Guys, I'm trying to write xpath or css to find/click on list element "All" based on known span(in this case SNG NAME below). On page, there are different lists Which can ...

16. Saving full page content using Selenium    stackoverflow.com

I was wondering what's the best way to save all the files that are retrieved when Selenium visits a site. In other words, when Selenium visits http://www.google.com I want ...

17. Does ExceptionHub break Selenium's wait_for_page_to_load command    stackoverflow.com

I just added ExceptionHub (a javascript error tracking service) to our website, but all my selenium tests are failing now. When I look at the selenium output, it says it timed ...

18. find page source using selenium    stackoverflow.com

i have to use code

this.setUp("http://www.remax.com/", "*firefox");
selenium.open("/404/index.aspx?aspxerrorpath=/public/pages/searchresults.aspx");
slenium.click("link=Find a RE/MAX Office");
selenium.waitForPageToLoad("30000");
selenium.selectFrame("REMAX AGENT SEARCH");
selenium.click("ctl00_PlaceHolderMain_ButtonSearch");
to find source of given url but i have to find only few source because here use java script+Frame+Ajax code i have ...

19. The get() method times-out although the page is displayed correctly    stackoverflow.com

I'm using Selenium 2 in Java, and when loading a web page using Webdriver's (the InternetExplorerDriver class) get() method a time-out is received and the execution halts although the page appears ...

20. checking broken links on a page parallely using selenium and java    stackoverflow.com

The task is to check broken links on a webpage using selenium RC and java . It can be done simply by

a) click on link A
b) wait for page to ...

21. How do I make a Selenium test for a page with a textbox whose name constantly changes?    stackoverflow.com

I am trying to create a test that can enter a username and password into a login form on a page. However, the textbox name changes on every load of the ...

22. How to detect if a URL fires upon loading a page    stackoverflow.com

We're trying to validate if a URL fires upon loading a web page. Is there a way to do this programmatically using Selenium RC? The event does not appear within the ...

23. Selenium Page Object Reuse    stackoverflow.com

I really like how selenium 2 by convention pushes you towards using PageObjects as POJOs, and then simply using the PageFactory to instantiate the fields in this class. What I am finding ...

24. What would be a walkaround for JavaScript alerts that are generated in a page's onload() using Selenium?    stackoverflow.com

I am automating a form page using Selenium RC (C#). After I click 'Submit' button, I get an alert 'Records Edited Successfully!'. The title of this alert box is 'The page ...

25. opera browser not loading the page using selenium Rc(Java)    stackoverflow.com

I have a suite of Selenium tests (created using Java in Selenium RC 1.0.3) that work perfectly with IE, Firefox and Google Chrome. But when I try to use Opera ...

26. How to automate my web pages for testing using Selenium    stackoverflow.com

I am using selenium for my web automated testing. finally i have make simple program to open a browser using selenium. But i am not getting a good document for this. ...

27. Detecting the last page refresh using Selenium    stackoverflow.com

I am testing an application which has a auto page refresh which occurs every 45 seconds. I need to find out the time when the last auto refresh has occured and ...

28. Selenium: How to track a JS page location redirect?    stackoverflow.com

I am testing an app that runs javascript. The last part of the app opens a PDF file using the javascript command:

document.location.href = 'data:application/pdf;base64,' + pdfbytes;
I'm wanting to make sure the ...

29. Selenium RC failing to retrive or timing out on page load    stackoverflow.com

I exported a working Selenium test case to java, running it via selinium-rc's selenium-server.jar in Junit4 on Eclipse. The test case breaks the next step after opening the page, trying ...

30. Using Selenium 2's IWebDriver to interact with elements on the page    stackoverflow.com

I'm using Selenium's IWebDriver to write Unit Tests in C#. Such is an example:

IWebDriver defaultDriver = new InternetExplorerDriver();
var ddl = driver.FindElements(By.TagName("select"));
The last line retrieves the select HTML element wrapped in a IWebElement. I ...

31. Interested in using Selenium to test XML / VXML pages    stackoverflow.com

Is there a way to use selenium to test VXML pages? I seem to only be able to access HTML content. Can anyone help?

32. can't find controls in page, but only when running via selenium-server    stackoverflow.com

I have a set of tests that I've developed using the Selenium IDE in Firefox. Tests run fine and all pass. Now I'm trying to port those over to C# and ...

33. Can Selenium IDE verify text on an XML page    stackoverflow.com

I have an application that for one of its pages returns an XML string (type text/xml). The result is returned "inline" so that when I load that page in Firefox I ...

34. Timed out after 30000ms when I try to go next page by clicking Submit button    stackoverflow.com

I am using Selenium RC by java.Fill up necessary data on 1st page-->Click Submit button to go next page. My code is: selenium.click("Submit"); selenium.waitForPageToLoad("30000"); After clicking Submit button I found the error: com.thoughtworks.selenium.SeleniumException: Timed ...

35. Timed out after 30000ms when I try to go next page by clicking Submit button    stackoverflow.com

I am using Selenium RC by java.Fill up necessary data on 1st page-->Click Submit button to go next page. My code is:

selenium.click("Submit");
selenium.waitForPageToLoad("30000");
After clicking Submit button I found the error:
com.thoughtworks.selenium.SeleniumException: Timed ...

36. New to Selenium IDE and I want to compare the text link on one page to another page    stackoverflow.com

I would like to store the link from a link on one page, then open that page and then compare the text on that page. When I use storeExpression and then enter ...

37. How to shift the focus from Page A to Page B in selenium ide    stackoverflow.com

I have a page called Page A. Page A contains the link. If you click that link Page B will open. Now I need to enter the text in some of the fields ...

38. Selenium Ide - How to scroll a page?    stackoverflow.com

I needed to write script in selenium to visit and scroll each and every page.I have a javascript code for that which I have tested.But I don't know how to make ...

39. selenium firefox test page never seen    stackoverflow.com

I'm new to selenium RC and using it from bromine. The problem is that when on firefox/ubuntu the window is testing the page, I can't see what exactly is being done ...

40. Selenium waitforpopup executing before page full loaded    stackoverflow.com

I am attempting to grab source html for a popup (using waitForPopUp and getHtmlSource); however, selenium is not waiting for the popup to fully load with the target content, thus I ...

41. Row counts of all pages in selenium    stackoverflow.com

I have 5 pages(we are using pagination). Each page has 10 records on it. If i use

int rcount =  selenium.getXpathCount("//table[@id='bank']/tbody/tr").intValue();
I am getting rcount as 10, that means it is only ...

42. How can I write a function in Selenium and call it from another page?    stackoverflow.com

I'm new to Selenium. I need to write a function in Selenium. This is a sample code. If it is correct, where we will save this file and what is the ...

43. IWebElement object needs to be created each time to find a new element on a page?    stackoverflow.com

IWebElement abc = driver.FindElement(By.Id("txtUserName"));
abc.SendKeys("TEST");
IWebElement abc1 = driver.FindElement(By.Id("txtPassword"));
abc1.SendKeys("TEST123");
IWebElement abc2 = driver.FindElement(By.Id("buttonSignIn"));
abc2.Click();
Do we need to explicitly create a new object each time to find an element on the same page? Can we just create ...

44. wait for page load in selenium    stackoverflow.com

How do you make Selenium wait for the page to load in Selenium 2.0?

45. Finding text in page with selenium 2    stackoverflow.com

how can I find the text inside a page using selenium? Is this the right way?

Assert.IsTrue(WebBrowser.Driver.PageSource.Contains(texto));

46. Selenium 2: Holding WebElements in cache after page has changed    stackoverflow.com

I want to be able to use WebElement instances after i moved to another page. I am not sure if that's possible, but there would be the need to store the ...

47. selenium: clicking on first link of the results page    stackoverflow.com

I am testing a page similar to Google search where you would enter the search terms in the provided text box, and click Search, and the next page returns a bunch ...

48. Timing page load times in Selenium    stackoverflow.com

I'm using selenium to log some performance tests on my site. for example login times, query times, etc. I have a sample script recorded on Selenium IDE. I now have it ...

49. Page object design pattern in multiple projects    stackoverflow.com

We test using selenium and use a page object design. That is, we have a library file that contains all the functionality of a certain page on our site. By "functionality" ...

50. Intermittent Selenium element not found, even after reporting element present    stackoverflow.com

I am having an issue in Selenium which has been recurring through my test suite that reports elements not present after they clearly are, and Selenium even reports that they are ...

51. Selenium2 wait for specific element on a page    stackoverflow.com

I am using Selenium2(2.0-b3) web driver I want to wait for a element to be present on the page. I can write like below and it works fine. But I do not want ...

52. Selenium varify text or link on the web page    stackoverflow.com

If i have to check a 'xyz' text present in header of the web page & the 'xyz' is present in body of the page.on the use of this function.it will ...

53. Selenium does not recognize the CSS path for a second element on the page    stackoverflow.com

I am trying to use a CSS selector to click on a link in Selenium but it fails to recognize it. The link called "Cancel" appears in two places in the ...

54. Selenium: Is there a way to search the entire page for given keywords?    stackoverflow.com

I am testing a website very similar to Google. So, if a user entered some search terms like "Selenium Tutorial", the results page would have a bunch of links with snippets. ...

55. Selenium 2: Interrupt a page load    stackoverflow.com

I have an issue when clicking on a button with Selenium 2.0b3 Java API with FirefoxDriver. Clicking on the button sends a form to the webserver and then browser goes to ...

56. Do not record particular page hit    stackoverflow.com

I am trying to hit particular web page and record post its load for example: http://serv1.project.com/page7 but on hitting above page only http://serv1.project.com gets recorded. When i play same script then http://serv1.project.com is ...

57. WebDriver: How to check if an page object web element exists?    stackoverflow.com

How to check if an Element exists, when using Page Objects with webdriver. So far I am doing it this way.

DefaultPage defaultPage = PageFactory.initElements(this.driver,
      DefaultPage.class);
assertTrue(defaultPage.isUserCreateMenuLinkPresent());
Page Object:
public class ...

58. Updated to Selenium 2.0rc3, pages don't load/read properly    stackoverflow.com

I'm at wits' end here, and hoping someone's ran into something similar before. I've been using Selenium 2.0a2 for a while now to test my web application. Now I've updated to rc3, ...

59. How to ask Selenium2 to finish loading a page on .Click before doing any assertions?    stackoverflow.com

I would like to use the selenium2 c# webdriver to test our login mechanism. The following test passes if I run through it in debug mode and give the Click method ...

60. Selenium - How to capture all web page elements and associated locators on a page?    stackoverflow.com

What Java/Selenium commands can I use to capture/get/output for all elements and associated element locators for a single webpage? The Selenium IDE allows you to inspect one element at a time. ...

61. handling "are you sure you want to navigate away from this page" Msg in Selenium 2.0    stackoverflow.com

Using Selenium 2.0 After Submitting a web form, A popup msg comes up with the "are you sure you want to navigate away from this page" message, How do I get selenium ...

62. Selenium, Not able to interact with a specific element in a web Page    stackoverflow.com

Moving my Cursor to a Element in webpage opens a drop down menu but this element is not clickable whenever user moves cursor over this element a dropdown menu opens Example can ...

63. Selenium with firefox 3.6 unable to load the welcome page    stackoverflow.com

I am able to execute a login page test casesin IE8 but not in the firefox. after entering the username, password and click on the submit button, the next page is not ...

64. Selenium Grid 2 - API version of /console page    stackoverflow.com

I am writing a status monitoring page for our test environment and would like a list of individual selenium/webdriver nodes which are registered with the Grid server. I can do ...

65. Using Selenium2, how do I check if certain text exists on the page?    stackoverflow.com

I am using the C# Selenium WebDriver and I would like to confirm that certain text exists on the page. How do I do this? All the selectors seem to use IDs, ...

66. Selenium: how to get an array of all text visisble on page with same locator    stackoverflow.com

I have the following locator on various parts of the webpage:(excerpt of HTML)

<table id="userPlaylistTable" cellspacing="0" cellpadding="0">
   <p class="title"> ABC </p>
   <p class="title"> DEF </p>
   <p ...

67. Re-using login functionality in Selenium page object model tests    stackoverflow.com

I am exploring the use of Selenium 2 on a web application which requires authentication before a user can use any of the application. I am planning on either JUnit 4 ...

68. How to get the HTML tag of some text on a page using selenium    stackoverflow.com

<div class="searchSummary floatL">
<span>18</span>
results for "gloves"
</div>
How could i get the tag for '18' using selenium. I am looking to retrieve 'span'. is that possible and how using selenium and css? thanks

69. How to handle 'Are you sure you want to navigate away from this page' on page close?    stackoverflow.com

I have an web application, which generates a JS message 'Are you sure you want to navigate away from this page?' when you try to open a new page. I know I can ...

70. Selenium: Firefox with WebDriver: Page load issue    stackoverflow.com

SeleniumServer version: 2.5.0, Firefox version: 4.0.1 I have a situation where a 'New Question' hyperlink is rendered through an Ajax call. Once the page load is complete, I need to click ...

71. Selenium HtmlUnit freeze randomly loading a web page    stackoverflow.com

im having a problem with HtmlUnitDriver using Selenium. Im using the Selenium 2.5 version. The test is so simply and usualy it works correctly but sometimes the driver just stop and wait endlessly ...

72. wait for an link to appear which is already in the page in selenium    stackoverflow.com

hi i am using selenium with testng. I have created a code in which i will login to a website and then after that their is a operation that happens and it ...

73. Selenium test on firefox can't load a page    stackoverflow.com

I'm creating a test script with Selenium RC, Firefox 3.6 and C#. I have a test environment (locally) against which to run the tests. However I have the following problem:

  • When ...

74. How to verify content present in specific area in a page    stackoverflow.com

How do we verify content under a specific area in a page. Let say i need to verify a word in the contentPane. The word may present in span, title or ...

75. Selenium click sometimes causes page to load and sometimes doesn't    stackoverflow.com

Clicking on a button in my web page sometimes causes the entire page to load, and sometimes only part of it to load. How can I call waitForPageToLoad without the page ...

76. How to verify searchCriteria present specific area in a page    stackoverflow.com

how do i verify the search criteria present in the contentPane. SearchCriteria include boolean charaters.. Ex: Management AND Politics like wise it can have OR, NOT, also () etc. SO i have ...

77. how to handle a ajax page using selenium RC?    stackoverflow.com

I met an issue while trying to test a ajax page using selenium RC. In the ajax page there are some radio buttons,checkbox and a submit buttons. Manually, when I click ...

78. Handle Pdf pages in website with Selenium via testng    stackoverflow.com

I am currently doing my automation on a website using selenium and Testng.All things were going fine . But when it came to check the data in some pdf reports i ...

79. Selenium WebDriver does it understand page loads now?    stackoverflow.com

With the current form of Selenium WebDriver does it understand page loads now? In my recent research comparing WatiN vs Selenium vs X one of the biggest points I've seen in favor ...

80. Handling Windows security pop while web page loading using selenium and Autoit    stackoverflow.com

Hi All, I have a web based application with windows security pop displayed as soon the first web page starts loading and the page completes loading only after we provide Login credentials. I ...

81. Page Object Model Best Practices in Selenium    stackoverflow.com

When you are modelling your page objects, how would you deal with a page which has form and about 50 input fields on it? What is the best practice here? Would you ...

82. How can I pass parameters from one page to another page    stackoverflow.com

I am using selenium+java junit. I want to pass the session id from the login page to another page. Is this possible?

83. Webdriver backed selenium java - how can I verify % within text on the page    stackoverflow.com

I'm running a test using webdriver backed selenium and java to verify an error message containing % this is causing the test to fail. I have tried to use the UTF-8 code ...

84. Selenium 2 Inject CSS into currently displayed web page    stackoverflow.com

I tested the following jQuery on a jQueryfied page to inject custom CSS code to the page:

jQuery('head').append('<style type=\"text/css\">body { background: #000; }</style>');
After that, the background of the page immediately turns black, ...

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.