You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, Thanks for approaching the support team. I have reviewed your query and it seems like you are suggesting the changes in the sample code of selenium with ruby. Please correct me if I am wrong and please elaborate on your problem statement. Further, send us screenshots and the error stack that you have found while execution. In case the session did execute also share the Session ID with us too. Awaiting your response. Regards, Rahul H BrowserStack Support BrowserStack Docs BrowserStack FAQs
On
Mon, 25 Jul at 9:57 AM
, browserstack/cucumber-watir-browserstack ***@***.***> wrote:
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 + ***@***.***://email.browserstack.com/c/eJwdjsFuwyAQRL8mvmGZhV3IgUsP_Y0KzDpYxnYCdqPk60tzGY0080bDThJaA5oIu-gwYDTd7Agig1TGEFL8gSFAAGOu2rI2Ayh11eSnvs6Rl_khpsKPk7dDTFHc93hW9vWQYvXzpkTIJwu0miKR1VqUOr7xogduce4bWlPkuvTjvnbJhUmRpZFQQusbBRYbJfWA0DzILrt0BjHm_Yx9KPuzcqmHHz_8Bb6fsUlrdMUVvufXBb78Gm4b5qNUWrwy61INv5E8bok3_g1bSqwxTvBqrz5Qf5uPtvE_-QfO-1su'
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`
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
It needs following changes as per latest watir-webdriver version and ruby version > 2.5.0 :
The text was updated successfully, but these errors were encountered: