c# - Selenium; Unable to find element by class in Internet Explorer -


trying test simple page using selenium running visual studio 2013 in c#. internet explorer 11 starts , goes correct page, cannot find element it's class (the next thing does). can use developer tools see class clear day , place it's used. note works fine in chrome , firefox, using same test .

the html is;

<input class="btn btn-default" type="submit" value="log in"> 

and code i'm using find is;

iwebelement login = new webdriverwait(driver, timespan.fromseconds(5)).until(expectedconditions.elementexists(by.classname("btn"))); 

i've tried turning "protected mode" off 4 internet zones, still no joy.

this can issue native vs synthetic event of operating system. read this. disabling native events of iedriver should in such case.

i following same environment have

var options = new internetexploreroptions { enablenativeevents = false }; driver = new internetexplorerdriver(options); 

Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -