You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to add Wait Method.(SeleniumVBA's TimerWait Method)
PublicSubWait(OptionalByValmillisecondsAsLong=300)'pause in millisecondsDimstartTimeAsSingle,endTimeAsSingle,nowTimeAsSingle,elapsedTimeAsSinglestartTime=VBA.Timer()endTime=startTime+milliseconds/1000#DoWhilenowTime<endTimenowTime=VBA.Timer()IfnowTime<startTimeThen'oops - someone is burning the midnight oil!endTime=endTime-elapsedTimestartTime=0EndIfelapsedTime=nowTime-startTimeDoEvents'yield to other processes.LoopEndSub
I modified it by referring to SeleniumVBA's Execute Method,
PublicFunctionExecute' Set params to pathDimcmdArgsAsNewDictionaryDimparamKeyAsVariantForEachparamKeyInparameters.KeysIfInStr(path,"$"¶mKey)>0Then'path parameterpath=Replace(path,"$"¶mKey,parameters(paramKey))Else'non-path parametercmdArgs.AddparamKey,parameters(paramKey)EndIfNextIfcmdArgs.Exists("sessionId")ThencmdArgs.Remove"sessionId"' Send request to selenium serverDimrespAsDictionarySetresp=SendRequest(method,UrlBase+path,cmdArgs)
The text was updated successfully, but these errors were encountered:
I want to add Wait Method.(SeleniumVBA's TimerWait Method)
It also worked on Mac.
In relation to the timer.
Previously, when I added SetPageLoadTimeout, I got the following error.
Error 513 「invalid argument value must be a non-negative integer」
https://qiita.com/yaju/items/9d1f189a5d2118a3f4d3#comment-66636c3d7ded6b6e14de
I modified it by referring to SeleniumVBA's Execute Method,
The text was updated successfully, but these errors were encountered: