Forum Discussion
mkrausem Hi
I have tried the script
but I am getting an error Uncaught TypeError: Cannot read property 'usernameTextbox' of undefined]
Login page is of microsoft , so I am not sure what m missing
I have raised the incident for the same waiting for reply
ko.dataFor(document.getElementById('i0116')).usernameTextbox.value= ("soumya.jain@strategy-compass.com");
document.getElementById('idSIButton9').click();
Hey Jainsoumya
When you get a response from SmartBear regarding the support ticket - would you mind publishing the results please?
Refreshing the OAuth token has always been problematic, so I'd be interested to see a solution.
I do know someone put a script together that actually worked and posted the solution - I'll have a search and see if I can find it.
that's all I got for now I'm afraid!
Cheers,
Rich
- Jainsoumya3 years agoContributor
Hey richie
Sure !! I'll do that
- Jainsoumya3 years agoContributor
Hi sonya_m
I have automated the script till I get the token in server , I have attached the screenshot for the same ,
I am not that good in scripting so can you help how to get this token in use in the script
- ciuz99best3 years agoRegular Visitor
Jainsoumya Hi, I'm not really sure if this is what you're looking for, but maybe it'll come in handy, you can just create a new groovy script step before everything in order to refresh the token. Go here to the 'Forced token update' section and copy the script from there. Hope it helps you.