Files
004_comission/armandarmand/task1/task1-ticket1/_ref/VBScript/Remoting(Firefox).vbs
louiscklaw ce9a4aa9b3 update,
2025-01-31 19:27:58 +08:00

30 lines
1.6 KiB
Plaintext


' ---------------------------------------------------------------------------------------
' This script works with a browser installed on another station.
'
' Selenium Standalone Server:
' http://www.seleniumhq.org/download/
'
' Command line to start the server:
' java -jar selenium-server-standalone-2.47.1.jar
'
' ---------------------------------------------------------------------------------------
Const URI_SERVER = "http://127.0.0.1:4444/wd/hub"
Class Script
Dim driver
Sub Class_Initialize
Set driver = CreateObject("Selenium.WebDriver")
driver.StartRemotely URI_SERVER, "chrome"
driver.Wait 1000
End Sub
Sub Class_Terminate
driver.Quit 'Stops the browser
End Sub
End Class
Set s = New Script