Current time: 10-17-2018, 11:02 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Waiting for a element to become visible
10-03-2017, 04:26 PM
Post: #1
Waiting for a element to become visible
We have a few HTML games in which we need to measure the loading time. The game loads many of the assets asynchronously and so the regular document load events captured by WPT might not be helpful.

Is it possible to measure the time till a certain button becomes visible in the page. Selenium typically has methods available to wait for visibility of an element, but I don't see similar options in WPT scripting language.
Find all posts by this user
Quote this message in a reply
10-07-2017, 05:07 AM
Post: #2
RE: Waiting for a element to become visible
Do you want execution to wait until the element has loaded or do you just need to know timings? I haven't tried it yet, but maybe you can execute some js to poll for the element?
If you just need the timings you can use the custom metrics option or instrument it so it shows up with user timings.
Find all posts by this user
Quote this message in a reply
10-08-2018, 02:34 PM
Post: #3
RE: Waiting for a element to become visible
(10-03-2017 04:26 PM)Lord Nemesis Wrote:  We have a few HTML games in which we need to measure the loading time. The game loads many of the assets asynchronously and so the regular document load events captured by WPT might not be helpful.

Is it possible to measure the time till a certain button becomes visible in the page. Selenium typically has methods available to wait for visibility of an element, but I don't see similar options in WPT scripting language.


Were you able to find solution for this? How did you manage to wait for element?
Find all posts by this user
Quote this message in a reply
10-09-2018, 12:52 PM
Post: #4
RE: Waiting for a element to become visible
If you're not using sprite sheets for images, that will definitely speed things up.
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)