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

[Feature] browser_handler should work without the Behave context #10

Open
talawson05 opened this issue Sep 13, 2019 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@talawson05
Copy link
Contributor

Is your feature request related to a problem? Please describe.
If I'm not using Behave, I'm not able to use the browser_handler utility as the prepare_browser and it's subsequent methods all use the context.

Describe the solution you'd like
I'd like to see the browser_handler methods only ask for the parameters it needs to work, not rely on the catch all context variable used in the Behave framework

Describe alternatives you've considered
None

Additional context
I'd like to use this module with any test runner; such as pytest, nose, or lettuce

@Phil-87
Copy link
Contributor

Phil-87 commented Oct 29, 2019

Closed #23 as it was a duplicate of this issue. Description of duplicate issue:

The context object came from the NHS.UK tests which use Behave, but UiTestCore could be used by any other test pack so it doesn't make sense to use this object which is too closely coupled to a particular test pack. This change would require the config_handler to be moved back into the test packs, and any code using "context" would need to be refactored.

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

No branches or pull requests

2 participants