|
|
|
@ -720,8 +720,20 @@ Selenium_LoopToSendValueByName(ElementName,NumOfLoops:=1,SleepLength:=1000,Strin
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Selenium_LoopToSendValueToXpath(Xpath,NumOfLoops:=1,SleepLength:=1000,StringTextContent:=""){
|
|
|
|
|
Selenium_LoopToSendValueToXpath(Xpath,NumOfLoops:=1,SleepLength:=1000,StringTextContent:="",ClearElement:=0){
|
|
|
|
|
; Msgbox % "StringTextContent: " StringTextContent
|
|
|
|
|
; Msgbox % "ClearElement: " ClearElement
|
|
|
|
|
|
|
|
|
|
loop, %NumOfLoops% {
|
|
|
|
|
; msgbox % ClearElement
|
|
|
|
|
if(ClearElement){
|
|
|
|
|
Loop, 3 { ; have to do it multiple times to make it trigger properly
|
|
|
|
|
driver.FindElementByXPath(Xpath).clear()
|
|
|
|
|
sleep, 500
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; ToolTip, Loop attempt: %A_index%
|
|
|
|
|
try driver.FindElementByXPath(Xpath).sendKeys(StringTextContent) ; Click on "upload image" button
|
|
|
|
|
catch e {
|
|
|
|
|