Open ghost opened 3 years ago
Excellent work @ezagdd! I suggest to consider changing in all of the above:
Optional millisecond
to
Optional ByVal millisecond
In fact, I went through the entire code base and changed any input parameter that was not an object or variant (such as strongly-typed Double, Boolean, or String) to ByVal. Sorry I should have mentioned this before.... Many of my proposed modifications will raise an error if this is not done...
助言ありがとうございます。 ところで、ImplicitlyWait を SetImplicitlyWait に変更ですね。
Thank you for your advice. By the way, I changed ImplicitlyWait to SetImplicitlyWait.
Change method name ImplicitlyWaitto SetImplicitlyWait. WebDriver.cls
' Set Implicitly Wait (millisecond) '2022/1/10 chg
Public Function SetImplicitlyWait(Optional ByVal millisecond As Double = 0, _
Optional ByVal sessionId As String = vbNullString)
Dim Data As New Dictionary
Data.Add "implicit", millisecond
If sessionId <> vbNullString Then
Data.Add "sessionId", sessionId
End If
Execute CMD_SET_TIMEOUTS, Data
End Function
TinySeleniumVBA WebDriver.cls
Win32 API定義を WebDriver.cls の最初の関数記述より前に追加。
以下を WebDriver.cls の CMD定義 の末尾に追加。
以下を WebDriver.cls の InitCommands関数 の末尾に追加。
以下は待ち時間関連のMethod関数。