Current time: 03-22-2019, 07:48 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Switch to Popup in Script?
03-11-2016, 01:44 AM
Post: #1
Switch to Popup in Script?
tl;dr - how does one switch to a popup window in the webpagetest scripting language?

I've been tasked with a thorough evaluation of some of the sites our company delivers and have run into the wondeful practice (/me shakes head) of opening a secondary window for almost every primary user interaction. I'll work to change that as soon as I'm able. However, I need to interact with those pages. I can use selenium to capture the waterfall and share that, but I've found - for many managers - the visual of a blank screen for seconds before the primary content is rendered is of immeasurably greater impact.

So, how does one switch to a popup window in the webpagetest scripting language?

Many thanks!
Find all posts by this user
Quote this message in a reply
03-16-2016, 01:02 AM
Post: #2
RE: Switch to Popup in Script?
You can't. WebPageTest only works for the main browser window and actively blocks any new windows from opening.

Is there any way to get the URL for the new window and navigate to it directly instead of having it open in a new window?
Visit this user's website Find all posts by this user
Quote this message in a reply
03-16-2016, 02:19 AM
Post: #3
RE: Switch to Popup in Script?
Thanks, Pat! I expected as much.

I'm new to this company, but have been doing web performance for 16 years with the last 4 focused on front-end. I was brought in to help uncover challenges like this.

I think they're using the popup windows as some form of security through obfuscation. There is no way to get there directly. Thankfully, I can harvest the waterfall through the performance framework I built with Se+Chrome - I just _really_ wanted the video! You've done amazing things with the Speed Index and interaction with the page elements, but the video capture is THE killer feature of WPT for convincing management and convicting product owners/developers that they're delivering something other than what is in the user's best interest.
Find all posts by this user
Quote this message in a reply
03-14-2019, 02:24 AM
Post: #4
RE: Switch to Popup in Script?
Pat, Is this a feature we will get sometime in the future? As of Mar 2019 I still cant seem to get the popup windows performance metrics captured with the video.

Also clickAndWait often does not perform the action when the navigation is supposed to happen to a different url. Any other having the same/similar issues?
Find all posts by this user
Quote this message in a reply
03-14-2019, 07:20 AM
Post: #5
RE: Switch to Popup in Script?
No. Popups are blocked from opening and I wouldn't expect to add support for testing popups any time soon.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)