Skip to main content
Solved

Get the Coordinates of a Specified Feature in Webpage

  • 22 February 2023
  • 8 replies
  • 292 views

I am capturing an area of a window, but the size of this area varies depending on the webpage I am viewing. I would therefore like to identify a feature on the page and get its coordinates. I will then use these coordinates in the image capture package so I only capture the relevant bit. Can I do this in A360?

8 replies

Userlevel 4
Badge +14

Hi @Rob Sytner ,

Before capturing a specific area you can try maximizing the window so that whenever your image capture the window remains the same.

Userlevel 1
Badge +5

Am maximising, the size of what I want to screen grab changes. I need to be able to feed variables into the screen grab coordinates as these will change.

Userlevel 7
Badge +13

Hi @Rob Sytner ,

 

Why don’t you go with the Capture action with Custom XPath? 

Userlevel 4
Badge +14

As far as my knowledge goes, in screen capture action you have to put the coordinates manually if not than it will capture the whole screen.

Userlevel 1
Badge +5

@Padmakumar  Is that use recorder capture to get the properties i.e. coordinates, height, width of the table I am try to get. Then use them to define my screen capture?

Userlevel 7
Badge +13

@Padmakumar  Is that use recorder capture to get the properties i.e. coordinates, height, width of the table I am try to get. Then use them to define my screen capture?

 

Not exactly. This is to fetch the elements or objects available on the Webpage. Based on the type of element/object, the property will vary. You can customize Domex path if the webpage is dynamic so that, even though the value changes, your BOT will not fail to detect the element/object. 

Userlevel 1
Badge +5

@Padmakumar  I have definitely got something to go with now. Many thanks for the advice.

Userlevel 7
Badge +13

@Padmakumar  I have definitely got something to go with now. Many thanks for the advice.

 

Most welcome.

Reply