selenium-rc

reduce the size of the selenium frame

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

selenium-rc in bsd

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 PATH environment variable, or explicitly specify a path to Firefox like this: *firefox /b...

Selenium RC and clicking on Panel links!

Hi, I'm trying to click on the panel links (links in the same page but different panel) in the page using Selenium RC. I'm able to do it by using: browser.waitForCondition("selenium.isElementPresent(\"id=placeOrderLink\")", "30000") but I want to make it generic and I tried to use: String var="placeOrderLink"; browser.waitForConditi...

selenium rc with cruise control - testng error message - could not instantiate 'test'

I'm currently trying to set up cruisecontrol to run my selenium test suite. Everything works fine until I run the build, I got the following message: calling target(s) [execute-test] in build file C:\Project\src\build.xml Entering C:\Project\src\build.xml... Exiting C:\Project\src\build.xml. task location="C:\Project\src\build.xml:30: "...

Getting error running selenium tests

this is the error i'm getting when i tried to run my selenium script through a build.xml on a network server @BeforeTest Setup java.lang.RuntimeException: Could not start Selenium session: Internal Server Error at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89) at com.doubleclick.richmedia.selenium.InpageEndT...

how to grab text on a html page using selenium and store the value in testng report and show it on cruisecontrol

I watn to grab the version # of my app (which shows on the first page), and then show it on my cruisecontrol report. Should I use storeText or storeValue? And do I need to reconfig the cruisecontrol xsl? Thanks. ...

Selenium RC locators - referring to subsequent elements ?

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. xpath=(//span/div)[1] But with simple locators? For example, if there are 3 links identified by "link=Click Here", simply appending [3] won't get the 3rd el...

Selenium - getBodyText() return empty string

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 code: String store_report = selenium.getBodyText(); File f = new File("C:/folder/" + "report" + ".txt"); FileWriter writer = new FileWriter(f); writer.append(store...

Using selenium.getBodyText() to capture HTML source, using Java, how can I save it into a HTML file locally?

This is probably a java noob question but here is my scenario: using selenium, I captured the html source with getBodyText() using java, I want to save the information from getBodyText() into a html file so I can review it later I currently have getBodyText() stored as a String, here's the code: String stored_report = selenium.getBo...

Selenium.IsElementPresent using a Select Option's text (C#)

I'm using Selenium in C# with Selenium RC to do some automated interaction testing but have come across a stumbling block. Given this HTML: <select id="my-select-list"> <option value="1">First option</option> <option value="2">Second option</option> <option value="3">Third option</option> <option value="4">Fourth option...

Selenium to do automated smoke testing on an interval.

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 such as, can a user log in, can they register etc.. I want to set this up on an interval such as every 10 minutes run these tests. Is this possible with ...

Good pattern for running automated Selenium tests in HTTP and HTTPS?

Hi, I have a set of Selenium tests which run via HTTP - I'd like to run the same tests under HTTPS aswell as HTTP with as little duplication as possible. I guess other people must already be doing this? I use the Java Selenium Remote Control - but I can probably translate a method from another language. ...

selenium.captureEntirePageScreenshot does not work but selenium.captureScreenshot works

Hi, 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 from the ...

How to use regex in selenium locators

I'm using selenium RC and I would like, for example, to get all the links elements with attribute href that match: http://[^/]*\d+com I would like to use: sel.get_attribute( '//a[regx:match(@href, "http://[^/]*\d+.com")]/@name' ) which would return a list of the name attribute of all the links that match the regex. (or something li...

How to get the full source of a link using selenium

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 ...

about doing UI test using selenium-rc for internet explore 7 under window vista

Excuse me, may I ask if any one have tried to use selenium rc to do UI test for Inernet Explore 7 under window vista? I have tried to do that. But the result is that: when the code is run, it gets the IE7 opened and the page loaded. Afterwards, it does nothing although I do have command for typing text and clicking buttons after the pag...

Is Selenium platform specific?

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. ...

Selenium - dialog box

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 to be done is just press the OK button). selenium.open("/"); selenium.type("q", "selenium rc"); selenium.click("btnG"); selenium.waitForPageT...

how to stop selenium server on click of button using java ?

i have three projects generictest, testcase and testframework here generictest contains all the utility of selenium control. testcase contains all the testcases using junit and execute with selenium server and testframework show the qa dashboard it having two button start execution and stop execution and list of all testcases which are a...

Selenium RC Having problems with XPath

Hi, I'm using Selenium RC with chrome-mode for Firefox to automate test cases for a web application. I'm writing the scripts in Java using TestNG framework and Eclipse. Now to the main point: I'm having problems with Selenium RC for recognizing certain XPaths. I validate my XPaths with XPath-Checker extension for Firefox which shows no...