Good morning everyone!
I am using the Explorer control "InternetExplorerDriver" I can initially authenticate on one page but! when it goes to a second page it does not find the xpath that I put. Example
Try
Dim IExploreDrive As IWebDriver
IExploreDrive = New InternetExplorerDriver
'MUESTRA APLICACIÓN DE SIEBEL
IExploreDrive.Navigate().GoToUrl("www.example.com")
'USUARIO
Dim Usuario As IWebElement = IExploreDrive.FindElement(By.XPath(".//*[@id='s_swepi_1']"))
'CONTRASEÑA
Dim Contrasena As IWebElement = IExploreDrive.FindElement(By.XPath(".//*[@id='s_swepi_2']"))
Usuario.SendKeys(Login.usuario.ToString)
Contrasena.SendKeys(Login.contr.ToString)
'BOTON
IExploreDrive.FindElement(By.Id("s_swepi_22")).Click()
Thread.Sleep(1000)
''AQUI NO FUNCIONA NO LO ENCUENTRA
Dim Activo As IWebElement = IExploreDrive.FindElement(By.XPath(".//*[@id='s_4_1_10_0']"))
SendKeys.Send(txtActivo.ToString)
Catch ex As Exception
End Try
When I try to search for the last xpath, I can not find it because, change IE security options, disable protected mode and nothing.
I do not know how else to pass the Xpath to be able to write in a text field that exists on that site.
Someone could help me please.