au3WebDriver
au3WebDriver copied to clipboard
Extend _WD_Window() function by _WD_Window($sSession, 'restore')
Feature request
Is your feature request related to a problem? Please describe
On this forum thread were the question about How to restore the driver window?. After some tryouts and research it became clear that it was already possible with _WD_Window($sSession, 'rect' ...)
, but this was not so easy to understand and not intuitive.
Describe the solution you'd like
So I suggest to extend the function by a 'restore'
command which should be more intuitive or for some even more familiar like in other frameworks like Selenium or WebdriverIO. Code changes are visible in PR #515 👀 .
Describe alternatives you've considered
Alternatives? Leave it as it is and the next question about the usage of 'rect' will come I predict 😅 .
Additional context
Use Case:
You start with a sized driver window (by the "args" capability), e. g. 1440x810, and you will use _WD_Window($sSession, 'maximize')
to maximize the driver window, then later on you want to get back to the previous size, you only have to use _WD_Window($sSession, 'restore')
. Done.
Influences and relationship to other functionality
Only _WD_Window
related.