selenium

Selenium Server can not find a sessionId

What I want to do I'm trying to run Selenium Server on my Hudson CI server via the SeleniumHQ plugin, but unfortunatly it doesn't start for my single TestSuite. I already tried to set a different port, because I read this question. But the error stays. I'm running on Windows XP v2002 SP3, using latest Hudson CI (1.370) and SeleniumHQ (...

Can selenium open a search result page?

Hi everyone, I'm new to selenium. I want to ask about if there's a easy way to open a search result page of some urls, not just the homepages. for examples, I search stack overflow in google. The url is here, but the return page is google homepage.Is it possible to get the result page directly? I want to scratch some result pages. If I...

How to save a webpage by seleniumRC

Hi everyone, I use seleniumRC to open a url, then how to save this web page? How to realize it like urllib.urlretrieve do it? But urllib can't operate javascript in the page. One more question: Will it save the whole page with what I see as seleniumRC open it? ...

Dynamic input in Selenium/PHPUnit

I want to take dynamic input for values in my unit tests. How can I do this? Thanks! ...

Firefox windows don't close after Selenium test has run

Howdy. I've been running my selenium tests using selenium rc for about 6 months and suddenly the firefox windows selenium opens do not close when the test is finished. I am using a specific firefox profile and had not updated my selenium rc jar. I thought that perhaps the latest build of firefox may have been the problem but I reverte...

selenium -rc ,didnt run sometimes

it works fine in my machine if i try it in some other machine it opens below link and stops??.any one faced the problem? http://localhost:3124/selenium-server/core/Blank.html?stcode is like selenium = new DefaultSelenium("localhost", 3124, "*firefox", "https://"); ...

Selenium RC testing with Maven

I'm trying to run a series of selenium tests using maven and I get this error: Running com.myapp.web.selenium.MySeleniumTest WARN [SocketListener0-1] HttpConnection - POST /selenium-server/driver/ HTTP/1.1 java.lang.RuntimeException: Firefox refused shutdown while preparing a profile at org.openqa.selenium.server.browserlaunche...

Using Rails with webrat + selenium or only selenium?

Im reading The Rspec book and in that book, they are using webrat with selenium. I wonder if its possible to use selenium directly for integration tests in Rails instead of using it through webrat? What are the pros and cons with each way? ...

How many use Rspec for controllers and views?

Are there strong reasons for using Rspec for controllers and views too? My views are heavily dependent on Javascript, and as far as I know, Rspec doesn't handle javascript/ajax on views. Also im using Cucumber + Selenium for that. And should I use it for controllers? Isn't it enough to just use Cucumber + Selenium for the application ...

selenium dynamic values

how to capture dynamic values of button using selenium scripts? ...

How to get Firefox instances launched by Selenium server to remember form history?

I have a special profile for my Selenium server with various form history in it, and when I launch Firefox regularly I can indeed use them. However, when Selenium server launches a Firefox instance from this profile, there is no trace of them (although the regular browser history appears just fine). Any ideas? ...

howto hide firefox add-on popup initiate by selenium rc ?

everytime i test my selenium test, the instant of firefox will popup and show page of selenium rc. It's ok and cool. But i have problem. For every test i also have to see a firefox's page pop up and shown selenium plugin have been add to firefox. is there any way to configure selenium so it initiate firefox without a popup page cause af...

find page source using selenium

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

problem while passing credentials in url

hello Everyone, I m new to selenium. i m nt able to recored the window authentication window while recording. for that i tried to pass username and password in url bt its also nt working.it s redirect me to some other page.i m using firefox as my browser. my-method for passing credentials : http://username:[email protected] it cor...

java.lang.ClassNotFoundException: WebDriver API

I downloaded the selenium-java-2.0a5.zip http://code.google.com/p/selenium/downloads/list and ran the following code: package org.openqa.selenium.example; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.htmlunit.HtmlUnitDriver; public class Examp...

Selenium vs Celerity?

Isn't Selenium better than Celerity when it comes to testing web sites cause real browsers like Firefox, Safari, Chrome and Internet Explorer could be used so that we know our website is compatible with each of them. So if I use Celerity (it's java browser), even if all tests pass, doesn't that mean my website could still be incompatibl...

Regarding XPath

When i am checking an XPath of a link, it appears to be: id('content')/x:table/x:tbody/x:tr/x:td[2]/x:table/x:tbody/x:tr[2]/x:td[1]/x:table/x:tbody/x:tr[2]/x:td/x:table/x:tbody/x:tr[2]/x:td/x:table/x:tbody/x:tr[1]/x:td/x:table/x:tbody/x:tr/x:td/x:table/x:tbody/x:tr[2]/x:td/x:table/x:tbody/x:tr/x:td[4]/x:a[2] How can I use it in in tar...

webdriver keeps throwing IOException and reconnecting

I am using webdriver api (Selenium) and when I am trying to test a site (which I can view and browse normally in my browsers), I get the following message over and over. INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect 18-Aug-2010 12:36:08 AM org.apache.commons.httpclient.Http...

How do you test an Ajax application with Selenium and keep it stable?

Our team has been testing our application with Selenium as it's heavily JavaScript driven we've always had issues with tests occasionally failing. As the number of tests has increased the probability of at least one two tests failing in a complete run has become a certainty. What we recently figured out is that we probably have a race c...

declare window in selenium with browsermob

I am using browsermob and selenium for creating scripts to run on a site. I am trying to grab all of the elements on the page with a certain name. My problem is when I try to use window.document.getElementsByName("name"); browsermob says that window is not defined. How do you define window? ...