ruby - unable to identify iframes using page-object -
i tried different ways identify nested frame using page-object tried in_iframe(index: 1) |frame|..end
, tried id & class no luck
<div id="tabswrapper"> <table id="defaulttabs" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td class="tabcontentcell"> <div id="tabcontentcontainer" style="height: 443px;"> <a id="top" name="top"></a> <div id="tabdefaultcontent"> </div> <div id="tab14036918566282content" class="tabcontent" style="display: none;"> <iframe id="tab14036918566282frame" class="portal xicseamlessui" width="100%" height="716px" frameborder="0" "="" name="tab14036918566282frame" marginheight="0" marginwidth="0" src="/mywork/ptl/secure/defaultportal" style="height: 443px;"> <!doctype html> <html class="ltr yui3-js-enabled gecko ltr js firefox firefox24 firefox24-0 win secure" lang="en-us" dir="ltr"> </iframe> </div> <div id="tab14036918654673content" class="tabcontent"> <iframe id="tab14036918654673frame" class="portal xicseamlessui" width="100%" height="716px" frameborder="0" "="" name="tab14036918654673frame" marginheight="0" marginwidth="0" src="/ncs/secure/jas/create" style="height: 443px;"> <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <body class="browserff browserff3 init"> <div class="xicseamlessui" xic:app="create" xic:title="create"> <span id="bfeedback" class="feedback"> </span> <div id="confirmationwindow69" xic:width="50%"> <div id="contentmodalwindow6c" xic:width="50%"> <input id="hiddentext" class="xicinputtext" type="text" size="1" style="visibility:hidden" name="hiddentext"> <input id="hiddencheckbox" type="checkbox" onclick="var wcall=wicketajaxpost('?wicket:interface=:0:hiddencheckbox::ibehaviorlistener:0:', wicketserialize(wicket.$('hiddencheckbox')),null,null, function() {return wicket.$('hiddencheckbox') != null;}.bind(this));" name="hiddencheckbox" style="visibility: hidden"> <table cellspacing="0" cellpadding="0"> <tbody> <tr> <td width="83%"> </td> <td width="17%" align="right" nowrap="nowrap"> <label id="categorydescription65">select category: </label> <span id="categorydescriptiondropdown66"> <div class="xicinputwrapper xicinputwrapperselect"> <select id="celldropdown67" class="xicsmartselectloaded" name="categorydescriptiondropdown:celldropdown" onchange=".page.showpleasewait('processing...');var wcall=wicketajaxpost('?wicket:interface=:0:categorydescriptiondropdown:celldropdown::ibehaviorlistener:0:', wicketserialize(wicket.$('celldropdown67')),null,null, function() {return wicket.$('celldropdown67') != null;}.bind(this));"> <option value="0" selected="selected">new</option> <option value="1">basic</option> <option value="2">advanced</option> <option value="3">premium</option> <option value="4">other</option> </select> </div> </span> </td> </tr> <tr> <tr> <tr> </tbody> </table> <div id="mypleasewait22" class="xicpleasewait xicfullpagezindex" style="z-index: 2000; display: none;"> </div> <div id="pleasewait" class="xicpleasewait xicfullpagezindex" style="z-index: 6000; display: none;"> </body> </html> </iframe> </div> </div> </td> </tr> <tr> </tbody> </table>
here, there 2 frames 1 active , other hidden.
exception:timed out after 30 seconds, waiting {:css=>"select[name*='description']", :tag_name=>"select"} become nowadays (watir::wait::timeouterror)
this seems me iedriver issue when tried firefox , chrome working fine
ruby iframe selenium-webdriver watir-webdriver page-object-gem
No comments:
Post a Comment