robotframework - Finding elements inside an iframe without a iframe id using robot framework -


html looks this

<iframe src="/apex/cscfga__configureproduct?linkedid=a0w8e000000lpa5uac&amp;configid=a0z8e000000nbgmua4&amp;returl=/a0w8e000000lpa5uac&amp;isdtp=vw" width="100%" height="100%" onload="hideloading()" frameborder="0" style="height: 737px;"></iframe>

select frame doesnt work without id.how should robot script recognise iframe(without id)?

my script looks

${iframe}=  execute javascript   window.document.getelementsbytagname('iframe')[2] log ${iframe}    

but returns 'none'

please suggest how identify iframe.

select frame work type of locator. example, if it's iframe on page can this:

select frame    xpath=//iframe 

if there multiple iframes on page, need try find ancestor uniquely identifiable , frame relative that.

for example, given following html:

<div class="spreadsheet_container">     <div>          <iframe ...> 

... can use xpath such following:

select frame    xpath=//div[@class='spreadsheet_container']/div/iframe 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -