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

Wrap WebDriver exception about failed to load page into DriverException #39

Merged
merged 1 commit into from
Nov 3, 2024

Conversation

aik099
Copy link
Member

@aik099 aik099 commented Nov 2, 2024

Wrap WebDriver's TimeoutException and ScriptTimeoutException exceptions into DriverException, when the page wasn't opened due to page timeout being met.

P.S.
Based on minkphp/MinkSelenium2Driver#400 .

Copy link

codecov bot commented Nov 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.21%. Comparing base (eba0ed4) to head (4bacd30).
Report is 3 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #39      +/-   ##
============================================
+ Coverage     81.76%   84.21%   +2.44%     
- Complexity      191      194       +3     
============================================
  Files             1        1              
  Lines           488      494       +6     
============================================
+ Hits            399      416      +17     
+ Misses           89       78      -11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/WebdriverClassicDriver.php Outdated Show resolved Hide resolved
tests/Custom/TimeoutTest.php Outdated Show resolved Hide resolved
tests/Custom/TimeoutTest.php Outdated Show resolved Hide resolved
tests/Custom/TimeoutTest.php Outdated Show resolved Hide resolved
@aik099 aik099 force-pushed the page-load-timeout-exception-fix branch from d9f59c1 to c9a3b29 Compare November 2, 2024 20:42
@aik099
Copy link
Member Author

aik099 commented Nov 2, 2024

@uuf6429 , you can safely merge this PR if no other discussable topics are left.

@aik099 aik099 force-pushed the page-load-timeout-exception-fix branch from c9a3b29 to 4bacd30 Compare November 3, 2024 09:53
@uuf6429 uuf6429 merged commit d18d4ea into minkphp:main Nov 3, 2024
25 of 30 checks passed
@aik099 aik099 deleted the page-load-timeout-exception-fix branch November 4, 2024 08:15
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.

2 participants