Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current code not compatible with latest watir-webdriver version and ruby version > 2.5.0 #3

Open
sakshiseth opened this issue Jul 25, 2022 · 2 comments

Comments

@sakshiseth
Copy link

sakshiseth commented Jul 25, 2022

It needs following changes as per latest watir-webdriver version and ruby version > 2.5.0 :

require "rubygems"
require "watir"

require 'browserstack-automate'
require 'yaml'
BrowserStack.for "cucumber"


path = "features/support/config.yaml"
local_config = YAML.load_file(path)

USERNAME = local_config['BS_USERNAME']
AUTOMATE_KEY = local_config['BS_AUTHKEY']
browserstack_url = 'https://' + USERNAME + ':' + AUTOMATE_KEY + '@hub-cloud.browserstack.com/wd/hub'

Before do |scenario|
  browser = Watir::Browser.new :chrome, {url: browserstack_url}
  @browser = browser
  @browser.driver.manage.window.maximize
end


After do |scenario|
  @browser.close
end
@harsh-browserstack
Copy link

Hey

Can you kindly share more details and reach out to support@browserstack.com and we will help you further on the same.

@browserstack-support
Copy link

browserstack-support commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants