update,
This commit is contained in:
17
task1/task1-ticket1/_ref/Excel/Examples/browsers_running.bas
Normal file
17
task1/task1-ticket1/_ref/Excel/Examples/browsers_running.bas
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
Reference in New Issue
Block a user