Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

» Selenium IDE Verify different Maps (Hybridview, Mapview etc.)
Fri Nov 25, 2016 9:56 pm by DJ87

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

View previous topic View next topic Go down

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

Post by uma maheswari 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

uma maheswari
Active particpant
Active particpant

Posts : 12
Join date : 2010-10-19

Back to top Go down

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

Post by Neeraj 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.

Neeraj

Posts : 2
Join date : 2011-10-10

Back to top Go down

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

Post by include85 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

include85
Regular Participant
Regular Participant

Posts : 27
Join date : 2011-09-22
Age : 31
Location : Italia, Sicily

Back to top Go down

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

Post by Sponsored content Today at 1:17 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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