Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
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. Empty Selenium server launch only new browser windows but does not run the test.

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
avatar
Neeraj
Posts : 2
Join date : 2011-10-10

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

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.
include85
include85
Regular Participant
Regular Participant
Posts : 27
Join date : 2011-09-22
Age : 39
Location : Italia, Sicily

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

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

Selenium server launch only new browser windows but does not run the test. Empty 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