Share
Go down
uma maheswari
Active particpant
Active particpant
Posts : 12
Join date : 2010-10-19

Selenium server launch only new browser windows but does not run the test.

on Tue Oct 04, 2011 3:48 pm
Hi,

Can any one help me plz.

I try to run selenium RC script using Ruby.
First i run the selenium server in Command prompt.[java -jar selenium-server.jar]
Then in separate command prompt, i run my ruby script [eg.sample.rb].
My ruby script launch only new firefox browser[Version -6] and doesn not proceed test action.
Did i missed anything else? Plz Correct me if any.

this is my sample code.


require "test/unit"
require "rubygems"
gem "selenium-client"
require "selenium/client"

class Untitled < Test::Unit::TestCase

def setup
@verification_errors = []
@selenium = Selenium::Client::Driver.new \
:host => "localhost",
:port => 4444,
:browser => "*chrome",
:url => "http://www.google.co.in/",
:timeout_in_second => 60

@selenium.start_new_browser_session
end

def teardown
@selenium.close_current_browser_session
assert_equal [], @verification_errors
end

def test_untitled
@selenium.open "http://www.google.co.in/"
assert_equal "Google", @selenium.get_title
@selenium.click "id=lst-ib"
@selenium.type "id=lst-ib", "testing"
@selenium.click "name=btnG"
@selenium.click "link=Software testing - Wikipedia, the free encyclopedia"
@selenium.wait_for_page_to_load "30000"
assert_equal "Software testing - Wikipedia, the free encyclopedia", @selenium.get_title
@selenium.click "link=software bugs"
@selenium.wait_for_page_to_load "30000"
assert_equal "Software bug - Wikipedia, the free encyclopedia", @selenium.get_title
@selenium.click "link=compilers"
@selenium.wait_for_page_to_load "30000"
assert_equal "Compiler - Wikipedia, the free encyclopedia", @selenium.get_title
@selenium.click "link=computer program"
@selenium.wait_for_page_to_load "30000"
assert_equal "Computer program - Wikipedia, the free encyclopedia", @selenium.get_title
end
end
Neeraj
Posts : 2
Join date : 2011-10-10

Re: Selenium server launch only new browser windows but does not run the test.

on Mon Oct 10, 2011 3:45 pm
I have the same issue when working with webdriver and python. new window is launched but url is not opened. and hence the tests do not proceed.

Uma, please let me know if you find a solution.
avatar
include85
Regular Participant
Regular Participant
Posts : 27
Join date : 2011-09-22
Age : 32
Location : Italia, Sicily

Re: Selenium server launch only new browser windows but does not run the test.

on Tue Oct 18, 2011 4:33 pm
You can download new selenium jar file here:
http://code.google.com/p/selenium/downloads/list?redir=1
Sponsored content

Re: Selenium server launch only new browser windows but does not run the test.

Back to top
Permissions in this forum:
You cannot reply to topics in this forum