selenium

How does selenium.getEval() work?

I am trying to use selenium.getEval() to get all of the elements with a certain name. How do I do it? ...

Why am I unable to launch a URL via Ruby script?

Dear all, I am a Selenium (Ruby) newbie. I am trying to launch google homepage as below: @selenium = Selenium::SeleniumDriver.new("localhost", 4444, "*firefox", "http://www.google.com", 10000); @selenium.start However, after the script runs, it launches firefox with below URL: http://localhost:4444/selenium-server/core/Blank.html?st...

How to get java script frame source with the help of selenium

I will try to get source of "http://www.remax.com/residential/find_an_office/" after click on search button with the help of selenium,since here use java script+frame there for selenium is never success to get full source code of frame I have to use java code that is this.setUp("http://www.remax.com/", "*firefox"); selenium.open("/resid...

How do I pass control of a browser from one selenium java client to another?

Good day, I have some scripts (in fitnesse) that executes some selenium commands. However, there are some processes wherein it would be too complex (or hackish) with a plain selenium (+fitnesse) approach, so I'm planning to create my own class which will handle those complex processing (i.e. check if the items in the table are sorted in...

How to create an if statement in selenium that would run if a certain box was not checked?

I am trying to run an if statement in selenium that would verify if a checkbox was checked and if it was not perform a certain action. I tried if (selenium.verifyChecked("checkbox")=false){ //perform actions } else { //perform different actions }; and it said that that did not work. How would you do it? ...

How to handle type and input into WYSWYG editor such as tinymce when testing using selenium RC?

is there any solution to this problem i use : $this->type('contentform', 'i need to print this and go on with my testing'); but after i do submit it failed while when i do it manually it work. i'm using this code for submit: $this->click("publish"); i test my app via selenium RC + phpunit ps: it work in selenium IDE but fai...

Rails + cucumber + webrat + selnium : Periodic error on first scenario in feature

I have setup cucumber+webrat+selenium to test my rails app. This works well locally, and works about 50% of the time on my build (CI) server. The other 50% of the time, the first scenario in each feature fails with this error: Failed to start new browser session, shutdown browser and clear all session data Back trace starts with: or...

Where I can learn Cucumber in detail?

I am new on Ruby on Rails testing. I have seen many testing tools, such as Rspec,Cucumber,Seleneium,Watier etc. but could not detail information about that. Please give me a link for this. ...

Selenium 2 - Switching focus to a frame that has no name/id

So right now I'm trying to figure out how I can switch focus to a frame in Selenium 2 when the frame has no name or id? For a named frame I do: driver.SwitchTo().Frame(FrameName); but what is there is no name? Has anyone had experience with this? ...

Can you use the typeof operator in selenium?

I want to do this if (typeof(variable) == "undefined") {} does this work in selenium? ...

Can I run multiple RSpec/Selenium tests in order without resetting browser state?

So I just started using Steak, which in turn uses Capybara, which in turn uses Selenium. So I've heard it's good RSpec practice to split testing into lots of little it-clauses, each testing a small piece of functionality. But then it makes a test run take a lot longer, because the same steps get repeated for each test. Say I'm testing...

Organizing Selenium tests in Eclipse for batch execution

This is an organizational question - I have a set of "Java Projects" within the same workspace in Eclipse, comprising of a series of Selenium tests (pretty much each it's own Java Project). They are all within a same package. Now, in an effort towards automated execution, I need to batch execute these. Any ideas on how to better organiz...

Selenium Grid. Why HUB wrote "false" after registration Selenium RC?

Hello. I have question. Steps: 1. Run hub ("ant launch-hub") 2. Run registration of RC ("ant -Dport=5557 launch-remote-control") 3. Chek console of hub Question: In the console says: - RemoteControlProxy localhost:5557#false. why does it say "false". I dont understand it.![alt text][1] But Selenium RC displayed in the browser in "Avai...

how to run selenium test case written in java in bromine

hi, I tried to run test cases written in java but by default selenium server is opens the www.google.in and after that it says"element not found" because my site is rediff.com. how to change the web url in bromine? thanks in advance ...

Designing an webtesting DSL to be implemented by different Web testing drivers - should we mix primitive and non-primitive operations?

We are implementing a web test automation project for some intranet applications. To easy the writing of each test, we are designing a Java DSL that can be implemented using different adapters (we've chosen Sahi and Selenium/WebDriver so far, as we want to measure them side by side in terms of performance, readability, maintainability,...

How can I find text location with Selenium ?

I'm trying to find the location of some text on a web page using Selenium. I can use the isTextPresent function to tell me if the text occurs, but then I want to know where it actually is. The wider problem is that I want to click on this text. The problem is that I don't seem to be able to click on this text, which I think is in some c...

Can Selenium verify text inside a PDF loaded by the browser?

My web application loads a pdf in the browser. I have figured out how to check that the pdf has loaded correctly using: verifyAttribute xpath=//embed/@src {URL of PDF goes here} It would be really nice to be able to check the contents of the pdf with Selenium - for example verify that some text is present. Is there any way to do this?...

Best way to time something in Selenium

I'm writing some Selenium tests in Java, and I'm mostly trying to use verifications instead of assertions because the things I'm checking aren't very dependent so I don't want to abort if one little thing doesn't work. One of the things I'd like to keep an eye on is whether certain Drupal pages are taking forever to load. What's the best...

Selenium XHR ERROR: Response_Code = -1

I am using the newest version of Selenium RC and firefox 3.5 When I run my test from eclipse I get this error XHR ERROR: Response_Code = -1 Error_Message = Request Error. Firefox and Selenium RC open up fine, it seems to try to connect to the remote site I want, but then firefox crashes, any ideas? ...

Selenium with Python, how do I get the page output after running a script?

I'm not sure how to find this information, I have found a few tutorials so far about using Python with selenium but none have so much as touched on this.. I am able to run some basic test scripts through python that automate selenium but it just shows the browser window for a few seconds and then closes it.. I need to get the browser out...