forked from florentbr/SeleniumBasic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRemoting(Firefox).vbs
More file actions
29 lines (24 loc) · 1.55 KB
/
Remoting(Firefox).vbs
File metadata and controls
29 lines (24 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
' ---------------------------------------------------------------------------------------
' 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