Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Anonymous_User Absent Member.
Absent Member.
601 views

SSO Silverlight application


Hi,

I got some problems detecting when the login screen when a silverlight
application is done loading, and as the load time varies a lot depending
on first time use etc, I do not want to use delays to handle it.

Have anyone found a way to interact and detect silverlight
applications?

The application I'm looking at now is available online, and can be
found at: https://ssl.adr-as.no/accepta6.0

/Eik


--
seik
------------------------------------------------------------------------
seik's Profile: http://forums.novell.com/member.php?userid=45699
View this thread: http://forums.novell.com/showthread.php?t=451632

0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: SSO Silverlight application

Silverlight is a little odd in the way it defines the page. I created
the following which seems to work.

Dave

## BeginSection: "Login Form"
Site "Compello 6"-initial
DebugPrint "Conducting Match on login form Compello 6"
DebugPrint "Form is Compello 6"
MatchDomain "ssl.adr-as.no"
DebugPrint "Matched domain portion of URL: 'ssl.adr-as.no'"
EndSite
DebugPrint "Successfully matched login form Compello 6"
SetPrompt "Username"
Type -raw $Username
SetPrompt "Password:"
Type -raw "\t"
Type -raw $password
DebugPrint "Performed entry action TypeRaw $password"
SetPrompt "Please edit your login variables."
Type -Raw "\t\t\n"
DebugPrint "Raw typing action performed. Key sequence '\t\t\n' entered."
EndScript
## EndSection: "Login Form"


## BeginSection: "Login Form Subroutines"
## EndSection: "Login Form Subroutines"



On 01/02/2012 09:06, seik wrote:
>
> Hi,
>
> I got some problems detecting when the login screen when a silverlight
> application is done loading, and as the load time varies a lot depending
> on first time use etc, I do not want to use delays to handle it.
>
> Have anyone found a way to interact and detect silverlight
> applications?
>
> The application I'm looking at now is available online, and can be
> found at: https://ssl.adr-as.no/accepta6.0
>
> /Eik
>
>

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: SSO Silverlight application


The matching itself is ok, i do it slightly different though.
Site "Compello6" -initial
MatchForm #1 -name "" -action "default.aspx?cci=accepta2.cci"
EndSite

However, if you clear your temp.internet files, the "type -raw" will
start typing before the silverlight app is actually done loading.
So the solution you're suggesting, (which i also tried) isnt very
stable.

As a workaround for now, im using;
MessageBox "Click 'Ok' to login when the page is done loading."
SetPrompt "Username"
Type -Raw $username
Type -Raw "\T"
SetPrompt "Password"
Type -Raw $password
etc...

But I would prefer to skip that dialog box. 🙂


--
seik
------------------------------------------------------------------------
seik's Profile: http://forums.novell.com/member.php?userid=45699
View this thread: http://forums.novell.com/showthread.php?t=451632

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.