added ability to save statistic for selenium mouse clicks
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
;------------------------------------------------
|
||||
; Selenium Related Functions
|
||||
|
||||
global MouseClicksSaved
|
||||
|
||||
ShowSeleniumErrorMsgbox(){
|
||||
|
||||
@@ -16,7 +17,7 @@ ShowSeleniumErrorMsgbox(){
|
||||
OnMessage(0x44, "")
|
||||
|
||||
IfMsgBox Yes, {
|
||||
; Open Instructions Gitea page
|
||||
; Open Instructions Gitea page
|
||||
|
||||
if(InStr(A_ScriptName, "Video"))
|
||||
URL = https://git.freedomainplaylists.com/yuriy/Freedomain-Video-Uploader#installation
|
||||
@@ -670,6 +671,7 @@ Selenium_LoopToClickID(IDName,NumOfLoops:=1,SleepLength:=1000){
|
||||
sleep, %SleepLength%
|
||||
Continue
|
||||
}
|
||||
MouseClicksSaved += 1
|
||||
Return
|
||||
}
|
||||
}
|
||||
@@ -685,6 +687,7 @@ Selenium_LoopToClickName(ElementName,NumOfLoops:=1,SleepLength:=1000){
|
||||
sleep, %SleepLength%
|
||||
Continue
|
||||
}
|
||||
MouseClicksSaved += 1
|
||||
Return
|
||||
}
|
||||
}
|
||||
@@ -744,6 +747,7 @@ Selenium_LoopToClickXpath(Xpath,NumOfLoops:=1,SleepLength:=1000){
|
||||
sleep, %SleepLength%
|
||||
Continue
|
||||
}
|
||||
MouseClicksSaved += 1
|
||||
Return
|
||||
}
|
||||
}
|
||||
@@ -769,6 +773,7 @@ Selenium_LoopToClickXpathAndWaitForOpenWindow(Xpath,NumOfLoops:=1,SleepLength:=1
|
||||
sleep, %SleepLength%
|
||||
Continue
|
||||
}
|
||||
MouseClicksSaved += 1
|
||||
Return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user