VB.NET setup chrome localhost help ?
Hello,,
How to run Chrome As a localhost in #C or VB.net
This is video for python how to setup chrome localhost
How can this work for VB.net I tried this but its not working
I tried for Vb.net this code but it's not working
Code:
VB.net CODE :
Imports OpenQA.Selenium
Imports OpenQA.Selenium.Chrome
Imports OpenQA.Selenium.Support.UI
'<<
Dim options As ChromeOptions
options.AddAdditionalCapability("debuggerAddress", "localhost:9222")
Dim driver As IWebDriver
driver = New ChromeDriver(options)
driver.Navigate().GoToUrl("https://ipleak.net")
This is python code that works :
Code:
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import os
import time
option = Options()
option.add_experimental_option("debuggerAddress","localhost:9222")
driver = webdriver.Chrome(executable_path = "C:\API\chromedriver.exe",options=option)
driver.get('https://ipleak.net')
time.sleep(10)