tomohiroikoma / selenium-vba

Automatically exported from code.google.com/p/selenium-vba
0 stars 0 forks source link

want to use Selenium VBA without installing the wrapper setup #154

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Operating system and version (32/64bit) : windows 7 32bit /windows 8 64 bit
.Net Framework version :
Office name and version(office 2010 32/64bit) :
Browser name and version : chrome
SeleniumWrapper version :1.0.23.0

Could you please let me know if I can register the DLLs manually and not 
install the setup on my client systems. I would like to know the DLL list which 
i need to register as well as how i can register them as I do not have access 
to install this setup on client systems.

Please help

Original issue reported on code.google.com by pratik.r...@gmail.com on 13 May 2015 at 6:44

GoogleCodeExporter commented 8 years ago
The new version can now be installed without privileges.
It's also possible to use it in Excel without registration, but you'll have to 
use a custom
function to create objects and add mscorlib as a reference:

Const NETDLL = "..\Selenium.dll"

Function CreateObject2(typeName As String) As Object
    Static domain As mscorlib.AppDomain
    If domain Is Nothing Then
        Dim host As New mscoree.CorRuntimeHost
        host.Start
        host.GetDefaultDomain domain
    End If
    Set CreateObject2 = domain.CreateInstanceFrom(NETDLL, typeName).Unwrap
End Function

To get the libraries, you can either build the project or extract them from the 
setup.

Be also aware that the project has moved to GitHub:
http://florentbr.github.io/SeleniumBasic

Original comment by florentbr on 21 Jul 2015 at 7:47