最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How can i find all iframe on the webpage? - Stack Overflow

programmeradmin3浏览0评论

I want to know that is there any add-on available in firefox to find all iframe available on webpage.?

I want to use it for selenium webdriver automation to switch into iframe.

I want to know that is there any add-on available in firefox to find all iframe available on webpage.?

I want to use it for selenium webdriver automation to switch into iframe.

Share Improve this question edited Oct 28, 2013 at 6:07 Masudul 22k5 gold badges45 silver badges60 bronze badges asked Oct 28, 2013 at 6:06 Jasmine.OlivraJasmine.Olivra 1,7719 gold badges24 silver badges37 bronze badges 3
  • document.getElementsByTagName('iframe') ? – rab Commented Oct 28, 2013 at 6:10
  • that i know that what is the mand to get iframe. but i want to know that is there any firefox addon available which help to show all iframe on the webpage – Jasmine.Olivra Commented Oct 28, 2013 at 6:14
  • Not exactly an add-on, works in any browser, as long as all iframes have the same domain. – Teemu Commented Oct 28, 2013 at 6:22
Add a ment  | 

2 Answers 2

Reset to default 1

Google Chrome

Use Chrome Developer debugging Tool to find all the available iFrames in the web page.

  1. Open chrome web Browser
  2. Press F12 key
  3. Press Esc key
  4. In console, you will see a filter icon followed by the dropdown top frame
  5. Click on the dropdown to see the iFrames availability.

Thank you for your valuable reply

finally i find answer of my problem.

Web Developer extension is addon for firefox. which have one option "Outline Frames" which highlight all iframes on the webpage

once we found iframes on the page we can get its name/ id / xpath/ css whatever we need in selenium automation using firebug.

thank you :)

发布评论

评论列表(0)

  1. 暂无评论