[jawsscripts] JAWS 11 Script Changes

  • From: "Donald Marang" <donald.marang@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 16 Sep 2009 21:22:39 -0400

I ran into another strange JAWS 11 beta issue in the past few days.  I had JAWS 
11 beta installed and attempting to do everyday tasks.  I had not been writing 
scripts with JAWS 11 yet.  Although I did install and test some VMware scripts. 
 
I have a few scripts that automate recording a show on my DVR on DirecTV's web 
site.  It has a script that grabs the program of interest, launches the DirecTV 
mobile web site, and then has a While loop that determines what page has 
appeared.  A group of If ... Then, ElIf ... Then, EndIf statements call a 
function that does the proper action for that page.  

I had most of the individual page functions working before I installed the JAWS 
11 beta software.  Strangely, just installing JAWS 11 beta broke these 
functions!  I was still writing and running the scripts in JAWS 10!  The only 
explanation I can think of is FS made some changes in the JAWS common code that 
affects these HTML DOM functions?  An example is below for the page where you 
must click on the first link on the page to continue.  

When working properly the function will announce the alt tag and spell it as 
"Continue".  With JAWS 11 installed but running JAWS 10, the variable for the 
alt tag is a null string!  

I know I use more code than necessary.  In general, I have been using these 
scripts as an oppertunity to better understand Dom navigation.  

Simply uninstalling JAWS 11 beta including shared components, then running a 
repair on JAWS 10 made the scripts work properly!  

Has anyone else had old scripts break just by installing the JAWS 11 beeta 
software?

Int Function ContinuePage ()

Var

Object oDoc, 

String sURL, 

Object oLinks,

Object oGoLink, 

Object oImage, 

String sName

SayMessage (OT_STATUS, "no edit fields: Assume new user, clicking Continue")

let oDoc = ieGetCurrentDocument ()

Let sURL = oDoc.url ; Creates the URL of the current page

Let oLinks = oDoc.links

Let oGoLink = oLinks(0)

Let oImage = oGoLink.firstChild()

Let sName = oImage.alt

SayMessage (OT_STATUS, "link Alt Text of link = " + sName)

; Lookking for "Continue" graphic link

SpellString (sName)

Let sName = oGoLink.href

SayMessage (OT_STATUS, "link href of link = " + sName)

; All ofthe above is bneeded only to assure I was focused on the correct place! 
Only the next two lines are needed

FocusToLink (1)

SayLine ()

EnterKey ()



; The next two lines are my prefered way to activate the link.  

;The metghod above was attempted when oLink no longer had the correct 
attributes!

; oGoLink.focus()

; oGoLink.click()

If ! WaitForPageLoad (sURL, DIRECTV_FIRST_LOGON ) Then

SayMessage (OT_ERROR, "Could not load DVR Scheduler First login page!")

Return False

EndIf

SayMessage (OT_STATUS, "First Login page")

Return True

EndFunction


Don Marang


__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: