Hi Team,
We are not able to login to our SPA, we gave tried with normal WPT and js script, getting navigation error at login page.
Code 1 :-
logData 1
setEventName launch
// this step will get recorded
navigate *****
//Login
setValue name=email *******
setValue name=password *****
setEventName login
submitForm name=loginButton
clickAndWait id=loginButton
Code 2:-
setEventName Go to Login
navigate https://*******
setEventName Login
exec const updateInputValue = (input, newValue) => { let lastValue = input.value; input.value = newValue; let event = new Event(“input”, { bubbles: true }); let tracker = input._valueTracker; if (tracker) { tracker.setValue(lastValue); } input.dispatchEvent(event);};
exec const [usernameInput, passwordInput] = document.getElementsByTagName(“input”)
exec updateInputValue(usernameInput, “**")
exec updateInputValue(passwordInput, "”)
execAndWait document.getElementsByTagName(“button”)[0].click()
Can anyone please look into it ?