svenjatzu Posted April 27, 2020 Share Posted April 27, 2020 hey hi someone please can help me translate my code to be valid for udf webriver? expandcollapse popup#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 More sharing options...
svenjatzu Posted April 27, 2020 Author Share Posted April 27, 2020 someone got an samplescript for runing webdriver udf, wait for element to be visible and then close browser? Link to comment Share on other sites More sharing options...
Danp2 Posted April 27, 2020 Share Posted April 27, 2020 Hi @svenjatzu, We won't rewrite your script for you, but we would be happy to give input / suggestions once you've attempted to do it yourself. Have you looked at the examples in wd_demo.au3? Dan P.S. Thanks to the mod who split this off the main UDF thread for me Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
svenjatzu Posted April 27, 2020 Author Share Posted April 27, 2020 jiep im reading it and now there is another question i came up to, how to run the udf with different browser profiles? Link to comment Share on other sites More sharing options...
Danp2 Posted April 27, 2020 Share Posted April 27, 2020 You mean user profiles? That's covered in the Wiki FAQ Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now