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

base url #15

Open
titusfortner opened this issue Feb 3, 2017 · 2 comments
Open

base url #15

titusfortner opened this issue Feb 3, 2017 · 2 comments
Milestone

Comments

@titusfortner
Copy link
Owner

#page_url needs to support a base url of some kind to make it easier to switch between staging/test/production environments

@azohra
Copy link

azohra commented Feb 3, 2017

we have always accomplished this via interpolation in the page object:
page_url { $session.root_url + $session.partials_urls.account_profile }
but I would be interested in adding a method for convenience and fun.

Would you consider the configure block approach and having the WatirDrops parent class inherit these configs?

WatirDrops::Config.configure do |c|
  c.base_url = 'https://loblaws.ca'
end

@titusfortner titusfortner added this to the 1.0 milestone Jan 27, 2018
@kribri
Copy link

kribri commented Jul 4, 2018

Just wondering if we can hope that this will be implemented sometime in the near future?

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