1. Prabal awasthi
  2. PowerBuilder
  3. Tuesday, 10 August 2021 08:00 AM UTC

HI Team, 

I am using Microsoft Custom Web Browser for navigating the user to Microsoft login Screen to put the Username and Password for generating OAuth2.0 Authorization code , I want to get the username entered by user in the Microsoft Login Screen for some validation. Is there any way to do that ?

Sample Screen is above.

 

thanks

Prabal

 

 

Attachments (1)
René Ullrich Accepted Answer Pending Moderation
  1. Tuesday, 10 August 2021 08:24 AM UTC
  2. PowerBuilder
  3. # 1

You could try to get the value using JavaScript.

Something like this:

ole_browser.Object.Document.parentWindow.eval ("enteredusername=...")
ls_username= ole_browser.Object.Document.Script.enteredusername

You have to replace "..." with the javascript code to access the value of the field in the web page.

 

Maybe there is also a way accessing the input directly via the DOM (ole_browser.Object.Document).

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.