rspec - Selenium WebDriver ElementNotVisibleError with IE 10 on Browserstack -
i have rspec tests using capybara work great locally , on browserstack configuration of os x mavericks/chrome 33 on browserstack.
when change configuration windows 7 / ie 10 i'm getting elementnotvisibleerror on last line of code represented here:
find('#myidtoexpandmylist').click #click selected 1 find(:xpath, "//somexpathtorepresentavalueinmylist", :visible => :all).click
what happening (i can see due screenshots) first line of code not working. reason click on element not working.
here image of expand (+)
when user clicks on plus sign items in list appear. since click isn't working items never appear , last line of code above doesn't work. why doesn't find/click work in ie 10 (with selenium webdriver)?
here html code behind expand:
<a id="myidtoexpandmylist" href="javascript:somejavscriptcalltoexpandwithvalues(params)"> <img src="plussign.png" alt="expand"> </a>
update: in looking @ further appears related modal dialogs. in case have modal dialog opening (z-index set , rest of page not reachable). reason (only in ie) can't click on link on modal dialog using capybara find(element).click. seems find element otherwise believe error on that.
second update: after trying sorts of things (falling selenium, different ie versions, native clicks, nothing worked. thing worked executing javascript via execute_script. plus sign (href) triggers javascript function opens list - called directly. not solution has better one.
i replying on behalf of browserstack.
i understand tests on ie 10, logs show expand(+) button clicked successfully. however, click did not initiate action (expand menu) supposed to. thus, subsequent actions failed.
as have mentioned, able run tests locally on machine. drop email following details:
- iedriver version use locally
- exact version of ie browser test on
- selenium jar version
Comments
Post a Comment