-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Locators to be blurred should ignore NoSuchElementException error in Capture Screenshot keywords #45
Comments
@AllanMedeiros Makes sense. This would help avoid creating multiple blur variable arrays. Will push the change for this as part of the upcoming release. |
Added this import in selenium_hooks.py And changed this method like this.
Let me know if you thought something different than that. |
@AllanMedeiros This is exactly how I was planning to fix it. Could you raise a pull request with this code please? |
ok, done! |
Released in v1.3.0 |
Is your feature request related to a problem? Please describe.
I have a single array of many fields to be blurred in the screenshot, but not all of them appears in every page of the application, so eventually I get NoSuchElementException error because one of these fields is not present in the current page.
I'm using a test case template to perform the same set of actions in many pages, would not be pratical to create a locator array for each page.
Describe the solution you'd like
Capture Screenshot kws could ignore NoSuchElementException error and proceed to next locator in the array.
Describe alternatives you've considered
I could create an array variable for each page, but that would kill the purpose of re-usability of code.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: