Jump to content

WebDriver script


Recommended Posts

hey hi

someone please can help me translate my code to be valid for udf webriver?

 

#RequireAdmin
Opt("WinTitleMatchMode",2)
;~ Sleep(10000)
ShellExecute("C:\neu\1.lnk")


;~ Sleep(3000)
;~ $PID = ShellExecute("C:\freeneu\tab.exe")
;~ Sleep(30000*5)

WinWait("Example Domain - Iron","")
Global $sWinTitle = "Example Domain - Iron"
Global $avWinList = WinList($sWinTitle)

While $avWinList[0][0] < 1
    Sleep(250); Wait for new process to create its GUI
    $avWinList = WinList($sWinTitle)
WEnd


For $n = 1 To $avWinList[0][0]
    WinActivate($avWinList[$n][1])
    WinMove($avWinList[$n][1], "", 0, 0, 230, 440)
 Next

Opt("WinTitleMatchMode",1)
WinWait("Iron")
Sleep(5333)
WinWait("Iron")

Opt("WinTitleMatchMode",2)
WinWaitActive("m:")
WinWait("m:")
WinClose("m:")
;~ Sleep(5000)


Sleep(1000)
;~ ProcessClose("tab.exe")
ShellExecute(@ScriptDir & "\q2.exe")

 

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...