Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Runtime error 438 when InvokeMember clicking on VB6

In VB6, I am unable to click skip_ad_button. I get the Runtime error:

runtime error 438 :object does not support this property error

What is the alternative to

WebBrowser1.Document.GetElementById("skip_ad_button").InvokeMember ("Click")

in VB6?

like image 272
user1816122 Avatar asked Mar 23 '26 21:03

user1816122


1 Answers

The runtime error is telling you that one of the objects you are using does not have the method you are calling. The possibilities are:

  1. WebBrowser1 does not have a Document property
  2. Document does not have a GetElementById property
  3. The object returned by GetElementById("skip_ad_button") does not have an InvokeMember property

Without knowing your exact object structure it would be very difficult to give a definitively correct answer. Reading this page may give you a starting point but you need to do some research.

like image 74
Carl Onager Avatar answered Mar 26 '26 15:03

Carl Onager



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!