0

I'm Getting

error

I tried different solutions.

Solution 1

Solution 2

Solution 3

Solution 4

But could not fix it. Is there any other way to fix it?

Dim driverService As ChromeDriverService = ChromeDriverService.CreateDefaultService()
driverService.HideCommandPromptWindow = True
dim driver = New ChromeDriver(driverService, chromeOptions)
driver.Manage().Window.Maximize()
driver.Manage().Cookies.DeleteAllCookies()
driver.Navigate().GoToUrl("https://accounts.google.com/ServiceLogin")

        Try

            Dim nameInput = driver.FindElementById("identifierId")

            If nameInput IsNot Nothing And nameInput.Displayed Then
                nameInput.SendKeys("xyz@gmail.com")
            End If

            Thread.Sleep(4000)

            Dim submitButton = driver.FindElementByXPath("//*[@id='identifierNext']/div/button")

            If submitButton IsNot Nothing And submitButton.Displayed Then
                submitButton.Click()
            End If

        Catch ex As Exception

        End Try

Taki Elias
  • 127
  • 1
  • 7

0 Answers0