question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

better iframe handling

See original GitHub issue

while #265 is super out of scope, what isn’t is considering a way to help users get to those iframes in isolation. i personally open the devtools and then open the iframe url in a new window. sounds right up visbug’s alley doesnt it?


ux:

  • hover over an iframe
  • get a metatip
  • cmd + click to open iframe in a new tab
  • visbug intercepts and uses js to complete the action

todo: (stubbed dev workflow)

  • make an iframe.js feature
  • iframe feature sets up listeners for hover and click on iframes
  • hover handler creates a metatip.element with instruction text
  • click handler uses window object to make a new tab with e.target src
  • import that feature from selectable.js? or visbug.element?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
argyleinkcommented, Dec 9, 2019

Thanks for this comment and check-in! Here’s some of my thoughts and feedback 🙂

  • i should have remembered that clicks on iframes wasn’t going to be a thing we could leverage, it’s one of the reasons visbug can’t operate on an iframe to begin with. sorry for not alerting you earlier, i was also oblivious to it when i write the prelim idea on how to tackle this. thanks for calling it out explicitly.
  • good news is that the hover event can currently see iframes and could definitely delegate the creation of a click stealing overlay to an iframe capture handler. that’s a great idea. perhaps the tooltip is replaced by a meaningful overlay? so we put the messaging into the overlay, and if they click while the overlay is showing, we send them to the iframe destination?

Screen Shot 2019-12-09 at 11 55 56 AM

that would update the flow to this:

  • hover over an iframe
  • create an overlay (if not already created) with a message about what happens with they click
  • click opens the iframe in a new tab
  • hover out, set created overlay opacity to display none (or whatever works best here, tbd). maybe since an iframe wont have a hoverout we leverage clearHover()?

this is still a great addition to visbug!

0reactions
adhrinaecommented, Dec 10, 2019

Yes, Overlay! I completely forgot that term. Thanks for the advice. I’ll try to approach this problem from creating overlay.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Handle iFrames in Selenium Webdriver: switchTo()
Right click on the element, If you find the option like 'This Frame' then it is an iframe.(Please refer the above diagram); Right...
Read more >
Handling iFrames Using Selenium WebDriver switchTo ...
Handling iFrames Using Selenium WebDriver swtichTo() method. iFrame (inline frame) is a HTML document embedded within another HTML document.
Read more >
The ultimate guide to iframes - LogRocket Blog
Not a fan of iframes? This post provides an overview of the tag's best features, shows you how to use them, and how...
Read more >
How to handle iFrame in Selenium - BrowserStack
Learn how to handle iframe in Selenium with the SwitchTo() method to switch between frames along with code samples.
Read more >
How to handle iFrame in Selenium - Testsigma
1. The webpage which is having iFrame is challenging to automate. Nested iFrame makes automation more complicated. 2. The nested dynamic iFrames ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found