Unable to find in InternetExplorer

37 views
Skip to first unread message

Renan Henrique

unread,
Mar 30, 2015, 2:37:51 PM3/30/15
to seleniu...@googlegroups.com
Hello people,

This code works perfectly:

        ChromeDriver driver = new ChromeDriver();
         driver
.Navigate().GoToUrl("https://www.detrannet.empresas.mg.gov.br/");
         
IWebElement links = driver.FindElementByLinkText("Cursos de Formação / Agendamento de Exames");
         links
.Click();



This code says, Unable to find, why? More than a day trying to work it and nothing, and I need to test only in internet explorer.
 
               InternetExplorerOptions a = new InternetExplorerOptions() { IntroduceInstabilityByIgnoringProtectedModeSettings = true, EnableNativeEvents = true, RequireWindowFocus = true, UnexpectedAlertBehavior = InternetExplorerUnexpectedAlertBehavior.Accept  };
               
var driver = new  InternetExplorerDriver(a);
                driver
.Navigate().GoToUrl("https://www.detrannet.empresas.mg.gov.br/");
               
IWebElement links = driver.FindElementByLinkText("Cursos de Formação / Agendamento de Exames");
                links
.Click();

Rohit Sakhawalkar

unread,
Apr 3, 2015, 12:20:11 AM4/3/15
to seleniu...@googlegroups.com

Mukesh otwani

unread,
Apr 4, 2015, 1:35:09 PM4/4/15
to seleniu...@googlegroups.com
Hey,


Did you try with xpath or css for link which you want to click.


Please print log as well so can help u better.

You can check below link and try hope it will work 




On Tuesday, March 31, 2015 at 12:07:51 AM UTC+5:30, Renan Henrique wrote:
Reply all
Reply to author
Forward
0 new messages