I'm Getting
I tried different solutions.
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
