Ask a Question

Authorization automation script for consent screen

yuraku
Contributor

Authorization automation script for consent screen

Hello

 

How scripts for "consent page" and other pages are working?

My script is working for the first page, but it doesn't work for "consent page". Should it be in the same section?

 

Script:

page 1 (login page) [this script is ok]

function login() {
    if (document.getElementById('Email')) {
        document.getElementById('Email').value = 'emailAccount';
        document.getElementById('next').click();
        setTimeout(providePassword, 3000);
    }
}

function providePassword() {
    document.getElementById('Passwd').value = 'emailLogin';
    document.getElementById('PersistentCookie').checked = false;
    document.getElementById('signIn').click();
}

login();

page 2 (consent screen) [not working]:

function consent() {
    document.getElementById('submit_approve_access').click();
}

setTimeout(consent, 5000);

 

4 REPLIES 4
TanyaYatskovska
SmartBear Alumni (Retired)

Hi Yuraku,

 

If you want to perform the GUI testing of your web site, I suggest that you use another SmartBear product for this - TestComplete. It's implemented specially for GUI testing and it has much more features for this. In Ready! API, you can send requests to your service and get responses. 

 

You can learn more about TestComplete here:

https://smartbear.com/product/testcomplete/web-module/overview

 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



i'm asking about this functionality

https://www.soapui.org/oauth2/automating-access-token-retrieval.html

 

and in my case "Page 2" is not working

TanyaYatskovska
SmartBear Alumni (Retired)

Thanks for the clarification, yuraku.

I suggest that you contact our Customer Care team to investigate this behavior. You can get in touch with them here: http://support.smartbear.com/product-list/

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



Hello there,

 

I'm facing the same issue as described from @yuraku; I would like to know if there is any help available meanwhile.

SOAPUI seems to loose the focus to my consent and i no more able to get any element from the consent. The login is successful executed.

 

I will be thankful for any help.

Regards

cancel
Showing results for 
Search instead for 
Did you mean: