Technical Tip
tip
Reads:
1287
Score:
Problem
A Forum reader recently asked:
"Has anyone succeeded in doing an NSL script for new Novell Login screen on the Novell web site?"
And here is the response from David Guest ...
Solution
It works as a web wizard for me - try this:
# ============================================================== # ===== Check that page hasnt been discarded already # ============================================================== If -SiteDeparted EndScript "ABORT" EndIf # =========================== # ===== Login Script #1 - Novell Login # =========================== # === Initial Login === Site Login -initial MatchDomain "secure-www.novell.com" MatchForm #1 -name "" MatchField #1:1 -name "username" -type "text" MatchField #1:2 -name "password" -type "password" MatchField #1:3 -name "nlogin_submit_btn" -type "submit" EndSite TextInput #1:1 -value "$Username" TextInput #1:2 -value "$Password" FocusInput #1:2 -focus "true" PressInput SetPrompt "Enter login credentials" EndScript # === Error logging in === Site Login -recent 5000 MatchDomain "secure-www.novell.com" MatchForm #1 -name "" MatchField #1:1 -name "username" -type "text" MatchField #1:2 -name "password" -type "password" MatchField #1:3 -name "nlogin_submit_btn" -type "submit" EndSite DisplayVariables "Login failed. Confirm your credentials are correct." TextInput #1:1 -value "$Username" TextInput #1:2 -value "$Password" FocusInput #1:2 -focus "true" PressInput EndScript
Related Articles
User Comments
We came up with this alternative Site block...
Submitted by Elfstone2 on 3 April 2008 - 2:37pm.
Site Login -userid "Novell.com" -initial
MatchTitle "Novell Login"
MatchForm #1 -name ""
MatchField #1:1 -name "username" -type "text"
MatchField #1:2 -name "password" -type "password"
EndSite
... MatchTitle just seems a little "tighter" than a MatchDomain since other forms may come from it.







1