Displaying 7 results from an estimated 7 matches for "seleniumdriver".
Did you mean:
selenium_driver
2009 Jan 30
3
Pass a variable from rake to steps file in cucumber
...r_type = ENV[''BROWSER''] || ''*chrome''
t.cucumber_opts = "--profile #{profile}"
end
I would like to have access to the "browser_type" variable in my "Before do"
in my_steps.rb file.
## my_steps.rb
Before do
$browser = Selenium::SeleniumDriver.new($server_host, $server_port,
"browser_type", $root_url, $time_out)
end
Thanks for the help.
--
View this message in context: http://www.nabble.com/Pass-a-variable-from-rake-to-steps-file-in-cucumber-tp21746008p21746008.html
Sent from the rspec-users mailing list archive at Nabble.c...
2008 Oct 24
2
Mulitbrowser selenium ruby
...ng problem:
I have written an automation framework in ruby, that uses selenium and
rspec and is run by an ant task, as thats the build process that is
implemented here.
Im currently running all my spec tests in firefox on my local machine by
passing the selenium variable:
@selenium = Selenium::SeleniumDriver.new("localhost", 4444, "*chrome",
"#{URL_BASE_1}", 10000);
if i want to change it to use ie then i would do the following
@selenium = Selenium::SeleniumDriver.new("localhost", 4444, "*iehta",
"#{URL_BASE_1}", 10000);
This is fine, bu i...
2007 May 29
2
Selenium, Spec:Ui and ... forks?
...Selenium only once, for many descriptions.
I''ve come quite far solving it by declaring a main ui spec like the following:
require ''pathname''
require File.dirname(__FILE__) + ''/selenium''
$base_url="http://localhost:3000"
$browser = Selenium::SeleniumDriver.new("localhost", 4444, "*firefox",
"http://localhost:3000", 10000)
$browser.start
Dir.glob(Pathname.new(__FILE__).parent.join("iteration*").join("*.rb")).each
do |file|
require file
end
$browser.kill! rescue nil
The problem is that the browser...
2008 Jul 17
2
Selenium docs or tutorial?
Does anyone have links to any complete Selenium docs or tutorial?
I have Selenium 1.0.9 installed (OS X, Leopard), the proxy server
appears to launch ok, and got the test to reach:
@browser = Selenium::SeleniumDriver.new("localhost", 4444,
"*firefox", "http://www.google.com", 15000)
this method has no documentation as far as I can tell (or comments in
the source).
I got it to launch firefox (which has Selenium IDE), but then it just
hangs.
--
Posted via ht...
2007 May 10
1
RSpec 0.9.4
...gives us Watir matchers. Sorry - Selenium-RC users must use
the low level API
include Spec::Matchers::Watir
end
end
=== before and after blocks ===
All of your specs need some carefully designed before and after blocks:
before(:all) do
@browser = Watir::Browser.new
#@browser = Selenium::SeleniumDriver.new("localhost", 4444,
"*safari", "http://www.google.no", 10000)
end
after(:each) do
# This is needed to make screenshots work
Spec::Ui::ScreenshotFormatter.browser = @browser
end
after(:all) do
@browser.kill! rescue nil
end
2008 Mar 20
1
stories with selenium and the db
...st in
case someone is searching:
1) Add this in the helper file for selenium stories:
####################
class Spec::Story::Runner::ScenarioRunner
def initialize
@listeners = []
end
end
require ''vendor/plugins/selenium-ruby-client-driver/selenium''
$s = Selenium::SeleniumDriver.new("localhost", 4444, "*firefox", "http://localhost:3000
", 10000);
$s.start
####################
2) download the selenium ruby driver, place it in vendor/plugins/
selenium-ruby-client-driver
3) start the selenium server (java -jar selenium-server.jar)
4) start th...
2009 May 13
0
Cucumber + Selenium: Programmatically Starting a Test Server
...r framework, and am
integrating Selenium for client side tests. I''ve been playing with
refactoring my cucumber installation a bit, and have pulled the code
to start the selenium server out into a profile-configuration file,
similar to env.rb:
# start selenium
server
@@browser = Selenium::SeleniumDriver.new("localhost", 4444, "*chrome",
"http://localhost", 15000)
@@browser.start
# teardown - stop selenium
server
at_exit do
@@browser.stop
end
I would like to do the same thing to start my rails application test
server that I can run browser tests against, but I'...