0

I am learning Selenium VBA. I want to use HideCommandPromptwindow in Selenium VBA.

The code bellow returns runtime-error 438 error.

HideCommandPromptWindow example:

enter image description here

Attached print-screen source: https://github.com/danwagnerco/selenium-vba/issues/68.

My code:

Sub abc()
Dim driver As New SeleniumWrapper.WebDriver
driver.HideCommandPromptWindow = True
driver.Start "chrome", "https://www.google.com"
driver.Quit
driver.Close
End Sub

Error:

For driver.HideCommandPromptWindow = TrueI'm prompted with runtime error 438 object doesn't support this property or method.

How can I use it? Have a nice day!

1
  • I don't know the selenium API, but apparently SeleniumWrapper doesn't have a HideCommandPromptWindow method, or the VBA run-time would have found it. Re-type the dot; is there a HideCommandPromptWindow member in the list? If not, you need to use something that's there. If yes, then the API isn't raising standard errors, or is twisting their meaning and in that case I'd refer to the API's documentation.. what does it say about HideCommandPromptWindow? Commented May 24, 2017 at 4:11

1 Answer 1

1

The .HideCommandPromptWindow property was available from version 1.0.18

You are getting that error because you are using an old version of the wrapper. My guess is that you are using version 1.0.17.

Please download the latest version from the below link and try again. I tried with version 1.0.17 and I got the error but when I installed the version 1.0.18, it worked just fine as shown in the screenshot below.

Selenium Wrapper Setup File

Solution copied from origin:

selenium vba runtime-error 438

Sign up to request clarification or add additional context in comments.

1 Comment

Please have a look at stackoverflow.com/help/self-answer and avoid link only answers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.