MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
Script not executing or stopping too early
Current time: 08-07-2020, 02:52 PM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script not executing or stopping too early
09-23-2016, 08:16 AM
Post: #1
Script not executing or stopping too early
I'm trying to write a script that logs in, and after login clicks on a button. I want to measure the whole process from the start of entering credentials, to the end of navigation to the second page after logging in. This is my script below. I'm using a private instance so can't post the result, but I explain below the 2 different results that I get:

logData 0
logData 1
execAndWait $('#ius-userid').val('###'); $('#ius-password').val('###'); $('#ius-sign-in-submit-btn').click();
setDOMElement stepid=step1
execAndWait document.querySelector('ha-flow-step[stepid="step0"] .ha-button-primary').click();

### = data i scrubbed

There's 2 problems:
1 - If I run the script as is above, it doesn't complete the click of the button (the last line). It just sits on the page that loads after login.
2 - I also want to measure just the 2nd page loading, ignoring everything before it (in a separate script) and if I try this by moving the logData 1 down to the line above setDOMElement I get error "First View: Test Data Missing" with no results to look at.

Any tips on what I may be doing wrong?
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
Script not executing or stopping too early - maryb86 - 09-23-2016 08:16 AM

Forum Jump:

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