Jump to content

Recommended Posts

Posted

Hi All,

how to handle close button click event in edge browser while using webdriver, I want to detect from the script if user click Close "X" from the Edge Browser before its get close.  

Posted

No, What I am trying  to archive here is, I will open website till the login page and user has to enter credentials, for this script will wait till user successfully enter their credentials, once user got authenticated it will go to home page and then it will exit the loop, but if user closed the browser form "X" my script is still running but browser will close, so I want to access the users click activity before its close then I can stope the script. 

While 1
        If $login = False Then
            $oInputBox = _WD_FindElement($Session, $_WD_LOCATOR_ByXPath, "//input[(@name='searchvaluerow1') and (@class='qstext searchVal')]")
                If $oInputBox <> '' Then
                    $login = True
                    ExitLoop
                EndIf
        EndIf

if user pressed Close "X" I want to stop my loop

    WEnd

 

Posted (edited)
  On 3/7/2023 at 1:05 PM, RohanM said:

Yes, I checked in wd_demo.au3 file but couldn't find is there is any other help files?

Expand  

check in:

https://github.com/Danp2/au3WebDriver/archive/refs/tags/0.12.0.zip

 

you will find: Webdriver.chm

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...