selenium-wrapper-vba
selenium-wrapper-vba copied to clipboard
Code encounter compile error
In the webdriveroption.cls code I am getting a compile error after importing the file in the vba environment due to the code of Version 1.0 class is coming in vba class module after importing. In webdrover.cls again got the compile error public sub open browser.
Let me know, if I am doing anything wrong here. I followed the steps mentioned on the got after downloading those files.
Can you post your error message here?
@Jamespahan1995 +1. Im too getting the same error on MS office LTSC professional Plus 2021 while it is working fine in MS office LTSC professional Plus 2019. The error happens with MS excel and even the sample code is not working. @er-ri
Issue Description:
when tried to import all files webdriveroption.cls goes into modules with the following lines
"""Attribute VB_Name = "WebDriverOptions"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False"""
automatically removed. Also this line 'VERSION 1.0 CLASS' marked as Red with error 'end of statement'.
Solutions tried: I tried creating a class manually copying the code and pasting the in the newly created class but the same issue happens that
VERSION 1.0 CLASS
Attribute VB_Name = "WebDriverOptions"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Have attached the images stating the issue. Upon searching the net some say these are for VB and not for VBA and hence expected. I'm a total beginner, so obviously, I didn't understand it. Is there anyway to mitigate this issue?