![]() |
Docs? Over 10 years old? - Printable Version +- WebPagetest Forums (https://www.webpagetest.org/forums) +-- Forum: Web Performance (/forumdisplay.php?fid=3) +--- Forum: Discuss Test Results (/forumdisplay.php?fid=4) +--- Thread: Docs? Over 10 years old? (/showthread.php?tid=15994) |
Docs? Over 10 years old? - dfecker - 02-29-2020 02:48 AM There's a couple issues I'm encountering with the Docs for Scripts. Maybe this tool isn't for my Single Page App. And I need something else. But here goes: I'm trying to get past the Login Page so I can setup tests on specific functions. But the Docs reference things that no longer exist... I.e. "You can test a script in the desktop version by selecting "Run Script" from the File menu." Where do I get this "desktop version". I see no other reference to it except a dead one from 2012. The example given for doing a login and test is on: navigate http://webmail.aol.com But the steps, page, etc do not match so it doesn't work. I was able to get this site and another to work, but my site does not. I can get content in my username/password but the "Login" button is not getting clicked. <form class="login-form form-horizontal"> <.....> <a class="btn base-web-button" type="submit" id="login_btn">Login</a> I've tried: clickAndWait id=login_btn clickAndWait innerText=Login submitForm class=login-form submitForm name=login-form clickAndWait value=login_btn Nothing is working, help. Here's my full script: logdata 0 navigate https://local.mylocal#site.com // altered for security setValue id=loginEmail myuser@gmail.com setValue id=loginPassword myuserpassword clickAndWait id=login_btn logdata 1 sleep 10 navigate https://local.mylocal#site.com RE: Docs? Over 10 years old? - andydavies - 03-03-2020 12:13 AM SPA's tend to disassociate the HTML controls from their own data store so create unique scripting challenges This article might help you https://css-tricks.com/recipes-for-performance-testing-single-page-applications-in-webpagetest/ |