Danp2 / au3WebDriver

Web Driver UDF for AutoIt
MIT License
107 stars 23 forks source link

__WD_DetectError: frame not found detection #443

Closed Danp2 closed 1 year ago

Danp2 commented 1 year ago

Pull request

Proposed changes

Add detection for failure to locate a frame

Checklist

Put an x in the boxes that apply. If you're unsure about any of them, don't hesitate to ask. We are here to help!
This is simply a reminder of what we are going to look for before merging your code.

Types of changes

Please check x the type of change your PR introduces:

What is the current behavior?

Generic $_WD_ERROR_Exception is returned when the frame can't be located

What is the new behavior?

$_WD_ERROR_NoMatch is returned

Additional context

Add any other context about the problem here.

System under test

Please complete the following information.

mlipok commented 1 year ago

Looks good. but... _WD_FrameEnter header should be suplemented. https://github.com/Danp2/au3WebDriver/blob/7b4a109e695aba1d4e2a21028a53fc48a47ff1bf/wd_helper.au3#L630-L632

and this line too: https://github.com/Danp2/au3WebDriver/blob/7b4a109e695aba1d4e2a21028a53fc48a47ff1bf/wd_helper.au3#L698-L700

Danp2 commented 1 year ago

@mlipok That will come in a separate PR.