Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara

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
avatar
include85
Regular Participant
Regular Participant

Posts : 27
Join date : 2011-09-22
Age : 32
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


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