robotframework - Finding elements inside an iframe without a iframe id using robot framework -
html looks this
<iframe src="/apex/cscfga__configureproduct?linkedid=a0w8e000000lpa5uac&configid=a0z8e000000nbgmua4&returl=/a0w8e000000lpa5uac&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
Post a Comment