[jawsscripts] Re: Clicking on text in a table cell on the web

  • From: Artur Räpp <rtr@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sun, 3 Jan 2021 06:57:26 +0200

Hi,

The same thing but shorter 

Script test1 ()
; get current element class attribute value
; tested with JAWS 2021
var
object oNode,
string sTemp

let oNode = (GetFSXMLElementNode (0)).selectSingleNode("//@class")
let sTemp = oNode.value

; debug
if (StringLength(sTemp) > 0 ) then
sayString(sTemp)
else
SayString ("No class attribute")
endIf

;return sTemp
EndScript

Artur
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx <jawsscripts-bounce@xxxxxxxxxxxxx> On 
Behalf Of Artur Räpp
Sent: Sunday, January 3, 2021 12:42 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Clicking on text in a table cell on the web

Hi,

This example script should say class attribute value for current HTML element. 

Script test1 ()
var
object oXML,
object oNode,
string sTemp

let oXML = CreateXMLDomDoc ()
let sTemp = GetElementXML (0)
oXML.loadXML(sTemp)

let oNode = oXML.selectSingleNode("//@class") let sTemp = oNode.value if 
(StringLength(sTemp) > 0 ) then
sayString(sTemp)
else
SayString ("No class attribute")
endIf
;return sTemp
EndScript

Artur
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx <jawsscripts-bounce@xxxxxxxxxxxxx> On 
Behalf Of Sean Farrow
Sent: Saturday, January 2, 2021 12:13 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Clicking on text in a table cell on the web

Hi Csaba,
Do you know of any way to retrieve the CSS class of an element through JAWS 
scripts.

I'm using Chrome if that matters.
Thanks,
Sean.

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx <jawsscripts-bounce@xxxxxxxxxxxxx> On 
Behalf Of Csaba Árpádházy-Godo
Sent: 02 January 2021 04:14
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Clicking on text in a table cell on the web

Sean,

GetElementXML function is your friend. As far as I remember,FS-the generated 
XML does not contains CSS information others than position informations.

HTH

Chaba

2020. 12. 30. 15:18 keltezéssel, Sean Farrow írta:

Hi,
Are things like css styles/colours included in an elements xml.
Thanks,
Sean.

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
<jawsscripts-bounce@xxxxxxxxxxxxx> On Behalf Of Bob
Sent: 29 December 2020 21:11
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Clicking on text in a table cell on the web

Recent versions of jaws can create a colored box around the element at the 
virtual cursor. I can’t remember what the setting is called but it should be 
as easy as ticking a box in settings centre.

Bob
  

On 29 Dec 2020, at 20:53, Snowman <snowman@xxxxxxxxxxxxxxxx> wrote:

Hey,  in line with this MakeVisible stuff.  One of my major 
headaches is that,  when you are virtual cursoring around a web page, 
a sighted person can not see exactly where you are pointed.  There is 
an option to make sure it is visible.  But, they apparently have to 
scan the entire screen, hunting for what you are calling this thing, 
and since what jaws says might come from an alt tag,  the spoken text 
might not even be on screen anywhere.  So, they can't recognize it.
RouteJAWSToVirtual often does not seem to work,  especially, I 
suppose, if that element is not currently visible.
Anyway , I wonder if you can identify the object under the virtual 
cursor, use this MakeVisible action, and then position the mouse, 
technique, to show a sighted person where your virtual cursor is.
That would be so helpful, but I usually have trouble with  it.
Any thoughts on this?  Do I understand this correctly?


+--------------------------------------------------------------------------+
Listen to The Snowman on MushroomFM.com, Saturday evenings, 8PM 
Eastern time.
60's and 70's tunes, and gently conservative talk.

----- Original Message -----
From: "Bob" <temp@xxxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Monday, December 28, 2020 7:46 AM
Subject: [jawsscripts] Re: Clicking on text in a table cell on the 
web


I hate fiddling with the enter key or space bar on a website. I 
always seem to mess it up!

To hover you can use performactionOnElementWithId, use 
Action_MakeVisible and the left right top bottom parameters should 
populate by reference with the elements screen position.
You can then move the jaws cursor to the position and it should open 
the hover.

You may need to use GetDocumentXML though to find the content as it’s 
unlikely to be anywhere near the item your hovering over.

Bob


On 28 Dec 2020, at 13:06, Sean Farrow <sean.farrow@xxxxxxxxxxxxxxxx>
wrote:

Hi Bob,
Thanks.
Two further questions:
Is there a way of hovering over text. In this case a description 
comes up when a sighted user hovers over a particular column heading.

What is the accepted way of overriding the enter key on the web, 
should I just intercept the enter key script?

Thanks,
Sean.

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
<jawsscripts-bounce@xxxxxxxxxxxxx>
On Behalf Of Bob
Sent: 28 December 2020 12:37
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Clicking on text in a table cell on the 
web

Sean

You can use GetElementXML ()
Parse the string it returns for the fsID.
Use the fsID in PerformActionOnElementWithId using the left click 
constant from HJConst.jsh.
Note that the fsID needs to be converted from hex to dec.

Bob


On 28 Dec 2020, at 12:01, Sean Farrow 
<sean.farrow@xxxxxxxxxxxxxxxx>
wrote:

Hi,
Is there an easy way through scripting or otherwise to click on the 
text in the current table cell in a web browser?
I have a case where clicking text opens a dialog that I need to 
interact with and things like route JAWS to virtual don't seem to work.
This is a protected site, so I'm happy to have someone tandem in to 
take a look if needed.

Thanks,
Sean.

__________

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


__________

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

__________

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


__________

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

__________

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


__________

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

__________

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

__________ 

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

__________ 

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


__________ 

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


__________�

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

Other related posts: