Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebDriver Start Method stopped working #56

Open
GCuser99 opened this issue Jan 9, 2022 · 2 comments
Open

WebDriver Start Method stopped working #56

GCuser99 opened this issue Jan 9, 2022 · 2 comments

Comments

@GCuser99
Copy link

GCuser99 commented Jan 9, 2022

For some unknown reason the Start method stopped working for me today. In order to fix, I had to add quotes (Chr(34)) to driverPath and that fixed it. It is strange as I am not aware of any changes to the location of driverPath before it stopped working...

If shell(Chr(34) & driverPath & Chr(34) & Port, AppWinStyle) = 0 Then
@ghost
Copy link

ghost commented Jan 9, 2022

私は、driverPathに引用符 (Chr(34)) が無くても動きましたが、引用符 (Chr(34)) を付けた方が無難かもしれませんね。
I worked without the quotes (Chr (34)) in driverPath, but it might be safer to add the quotes (Chr (34)).

@GCuser99
Copy link
Author

GCuser99 commented Jan 9, 2022

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
    If Right(driverPath, 1) <> Chr(34) Then driverPath = driverPath & Chr(34)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant