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

Added support of error suppression in inline expressions #671

Merged
merged 3 commits into from
Sep 20, 2021

Conversation

ziflex
Copy link
Member

@ziflex ziflex commented Sep 20, 2021

Added new syntax to suppress errors in inline expressions:

LET page = DOCUMENT(urlToFailedPage)?

RETURN page == NONE
LET page = DOCUMENT(url, { driver: "cdp" })

CLICK(page, "#button")

LET navigated = (WAITFOR EVENT "navigation" IN page)? == NONE

RETURN navigated

@codecov
Copy link

codecov bot commented Sep 20, 2021

Codecov Report

Merging #671 (4f6a3d1) into master (72821e5) will increase coverage by 0.0%.
The diff coverage is 72.0%.

@@          Coverage Diff           @@
##           master    #671   +/-   ##
======================================
  Coverage    35.8%   35.9%           
======================================
  Files         348     349    +1     
  Lines       12612   12621    +9     
======================================
+ Hits         4520    4527    +7     
+ Misses       7661    7658    -3     
- Partials      431     436    +5     

@ziflex ziflex merged commit 2f399c6 into master Sep 20, 2021
@ziflex ziflex deleted the feature/expression-error-handling branch September 20, 2021 18:45
@ziflex ziflex changed the title Added support of error supression to inline expressions Added support of error suppression in inline expressions Sep 24, 2021
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

Successfully merging this pull request may close these issues.

1 participant