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

Question: Introspect/pause the browser by an error #99

Open
Chris53897 opened this issue Aug 19, 2022 · 1 comment
Open

Question: Introspect/pause the browser by an error #99

Chris53897 opened this issue Aug 19, 2022 · 1 comment

Comments

@Chris53897
Copy link
Contributor

Is it possible to configure the PantherBrowser that it introspects/pause the browser by an error?

Example:
->click('#form_wrong_id')

Actual Behaviour:

The Browser closes and an error will be shown.
Clickable element "#form_wrong_id" not found.

I insert a pause() command before the line and fix the selector. Delete the pause() command.
Check if it works and repeat the steps until it works.

Desired Behaviour:

Set an optional option (default: false)
$this->pantherBrowser(['SET_OPTION_PAUSE_BY_ERROR'] => true)

If an error will rise, it starts the introspection-Mode and give some Feedback about the error.
So i do not need add/remove the pause() function all over.

@Chris53897 Chris53897 changed the title Question: Question: Introspect/pause the browser by an error Aug 19, 2022
@kbond
Copy link
Member

kbond commented Aug 19, 2022

Is it possible to configure the PantherBrowser that it introspects/pause the browser by an error?

Not currently but seems like a good feature - I think this should be possible.

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

No branches or pull requests

2 participants