Files
armandarmand/task1/task1-ticket1/_ref/Excel/Examples/browsers_running.bas
louiscklaw 8719fe58b8 update,
2025-02-01 01:59:56 +08:00

18 lines
460 B
QBasic

Attribute VB_Name = "browsers_running"
' This module shows how to work with a running instance of
' a driver by using the GetObject function.
'
' To do so, create a vbs file with the following code and run it.
'
' Set driver = CreateObject("Selenium.ChromeDriver")
' driver.Start
' WScript.Echo "Click OK to quit"
'
Public Sub OpenURL()
Dim driver As WebDriver
Set driver = GetObject("Selenium.WebDriver")
driver.Get "https://www.google.co.uk"
End Sub