question

ChrisB avatar image
ChrisB asked ChrisB posted

New click x/y options for Web in 4.0

For new click properties in 4.0, are the x/y coordinates relative from the upper left corner of the target? Or from the center?

 

How do I get the dimensions of the target? I tried describe and I get the following, but I'm not sure what they mean.

 

offsetHeight: 24
offsetWidth: 99
offsetLeft: 152
offsetTop: 136

 

Are offsetLeft and offsetTop screen coordinates? Or relative from the browser?

 

offsetHeight and offsetWidth are height and width?

 

Thanks,

Chris

iTestGUI Testing(Web-Java Swing-etc)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
PreetS avatar image
PreetS answered PreetS posted
1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

PreetS avatar image PreetS commented ·

There are also properties like clientWidth or scrollWidth which may be useful depending on the target

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.