Forum Discussion
Hi HimanshuTayal ,
I'm referring this link-https://support.smartbear.com/readyapi/docs/requests/auth/types/oauth2/automate/sample.html
For the login page:
I tried using the below code:
//// This script checks what page is displayed and provides the appropriate data. It uses the project-level "user" and "pass" properties.
if (document.getElementById('username') && document.getElementById('Login')) {
document.getElementById('username').value = "jagruti.wani@********dev";
document.getElementById('password').value = "********";
document.getElementById('Login').click();
}
When I try to run the script, it works and the application gets open, but it does not fill the user and password information on the application's page.
Just the login page gets open as shown in the attached screenshot.
It does not fill the password. But when I close the page, I get 'All scripts executed successfully' pop-up as shown in the attached screenshot.
Thank you in advance,
Jagruuti Wani
Related Content
Recent Discussions
- 16 hours agodipsthorat
- 20 hours agoisbiat
- 2 days agoarmygrad