Compare commits
2 Commits
2e0c81f34f
...
43dd2c3f28
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
43dd2c3f28 | ||
|
|
88c48e133e |
@@ -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% {
|
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%
|
; ToolTip, Loop attempt: %A_index%
|
||||||
try driver.FindElementByXPath(Xpath).sendKeys(StringTextContent) ; Click on "upload image" button
|
try driver.FindElementByXPath(Xpath).sendKeys(StringTextContent) ; Click on "upload image" button
|
||||||
catch e {
|
catch e {
|
||||||
|
|||||||
Reference in New Issue
Block a user