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

  • From: Bob <temp@xxxxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Mon, 28 Dec 2020 15:23:27 +0000

I have never managed to use the line number for anything useful so I haven’t 
really looked at it in any depth. 

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

Thanks, that does the twick.
Finally, is there a way to get an html element from a line number?

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

Look at the enhancements in scripting page on the FS website. 
You can load the xml into the Dom object and search it with xpath. You can 
then find the nth column in the nth row with ease. 



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

Yep, same here.
Is there a way to navigate the element tree with JAWS.
I know for example, in this case the element I'm looking to hover over is 
the first cell in a specific column of a table.
Is there a way then, given the current column's xml, I can navigate up the 
html tree until I find the table then back down to the column I want?
Thanks,
Sean.


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
<jawsscripts-bounce@xxxxxxxxxxxxx> On Behalf Of Bob
Sent: 28 December 2020 13:47
To: jawsscripts@xxxxxxxxxxxxx
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

Other related posts: