Mike
Mike
Ok @ezagdd I see now! Proposed Lazy and Ugly Solution 1: Assuming that a successful result passed to user from CMD_W3C_EXECUTE_SCRIPT is always a non-object (?), the easy solution is...
Here is my "prettier" solution @ezagdd for your review... 1. Execute no longer tries to anticipate the return type for the caller - that is the caller's responsibility based on...
See @ezagdd's fix in [Issue 13](https://github.com/uezo/TinySeleniumVBA/issues/13#issuecomment-1003551051)
I get a Class Not Registered on my 64bit Windows when I try to run CurrentURL. However it works when I replace the "With" structure with: ``` CurrentURL = Execute(CMD_GET_CURRENT_URL,...
Maybe this issue should be classified as a "bug", as it may require a 64-bit user to install a 32-bit version of MS Script Control dll for it to work?...
@ezagdd excellent, thanks!
Another possibility for handling the optional driverPath in Start, Chrome, and Edge methods: ``` Public Sub Edge(Optional ByVal driverPath As String="msedgedriver.exe", Optional ByVal driverUrl As String = "http://localhost:9515", Optional ByVal...
One more idea... if you can at least expose "raise" and "timeout" parameters for Navigate, then convert Navigate to a function with Boolean return of True if no error, and...
Here is what raise-enabled Execute looks like (edited to fix Execute bug #46): ``` Public Function Execute(driverCommand, Optional parameters As Dictionary = Nothing, Optional ByVal raise As Boolean = True)...
My driver.exe path does have spaces in the directory names... Had to make the following changes to Start method: ``` If Left(driverPath, 1) Chr(34) Then driverPath = Chr(34) & driverPath...