florentbr / SeleniumBasic

A Selenium based browser automation framework for VB.Net, VBA and VBScript
BSD 3-Clause "New" or "Revised" License
431 stars 197 forks source link

how to change default port number for SeleniumBasic? #215

Open iisboy opened 3 years ago

iisboy commented 3 years ago

is there in vbscipt ,config file or method ?

Juampa2 commented 3 years ago

Hello. I use: oWD.addArgument('--proxy-server=http=127.0.0.1:pppp;https=127.0.0.1:pppp') where pppp is the desired port.

El viernes, 25 de diciembre de 2020 14:20:35 ART, iisboy notifications@github.com escribió:

is there in vbscipt ,config file or method ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

mogulman52 commented 3 years ago

Example:

`' This module contains examples on how to work 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 SERVER = "http://127.0.0.1:4444/wd/hub"

Private Sub Take_ScreenShot_Remotely() Dim driver As New WebDriver driver.StartRemotely SERVER, "safari" 'open the page with the URL in Sheet3 in cell A2 driver.Get [Sheet3!A4]

'Take the screenshoot driver.TakeScreenshot().ToExcel [Sheet3!A7]

driver.Quit End Sub `