how to get coordinate of a web element
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-09-23 03:53 PM
Hi everyone,
I am trying to capture screenshot of a web element of a web page.
i got logic for how to capture screenshot but stuck with how to get the coordinates of the web element.
If anyone have any idea or worked with same. Please let me know
Thanks
------------------------------
Manoj Patidar
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-09-23 11:24 PM
Hi Manoj, Looks like you are looking for screenshot VBO?
if so check below threads for screenshot VBO
https://community.blueprism.com/viewdocument/re-screenshot-vbo?CommunityKey=1e516cfe-4d1f-4de9-a9eb-58d15bf38c81&tab=librarydocuments
https://community.blueprism.com/communities/community-home/digestviewer/view-question?ContributedContentKey=d3e9064b-6cd3-4846-99ac-9ea618946547&CommunityKey=1e516cfe-4d1f-4de9-a9eb-58d15bf38c81
------------------------------
-----------------------
If I answered your query. Please mark it as the "Best Answer"
Harish Mogulluri
Lead developer
America/New_York TX
------------------------------
If I answered your query. Please mark it as the Best Answer
Harish Mogulluri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-09-23 04:03 AM
Hi Harish,
Thanks for your time and effort.
I want to capture screenshot and I got logic for that but the coordinates passed into the code are static and I want to capture a particular div tag of a web page.
don't know how to do that.
If you know anything please let me know.
------------------------------
Manoj Patidar
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-09-23 09:18 AM
Hi Manoj,
If you're looking for the co-ordinates of an HTML element then using a reader stage you can use the property get screen bounds which gives the co-ordinates of the HTML element attaching the screenshot for your reference
------------------------------
Babjee Vangipurapu
Senior RPA Developer
Wonderbotz
India
------------------------------
Senior RPA Developer
India
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
13-09-23 07:37 AM
Hi Babjee,
Hope you are doing great.
I used Read stage and I am getting relative coordinates to the web page but not relative to the window size, so when I am trying to use them to capture screenshot I am getting image of other part.
While to suggest something for this, on how to get coordinates relative to windows instead of webpage.
Thanks and Regards
Manoj Patidar
------------------------------
Manoj Patidar
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
13-09-23 08:53 AM
Hi Manoj,
As part of the best practice you can use maximize window after launch for the browser and then try getting the co-ordinates. Please let me know if you're still unable to get the correct co-ordinates.
------------------------------
Babjee Vangipurapu
Senior RPA Developer
Wonderbotz
India
------------------------------
Senior RPA Developer
India
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
14-09-23 03:41 AM
HI Babjee,
Hope you are doing great.
can you help me with how to maximize the browser window. I am using type of application as browser based application in application modeller. I used global send key event where i am passing "{F11}" in text field in input.
Thanks and Regards.
------------------------------
Manoj Patidar
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
14-09-23 03:58 AM
Hi Manoj,
You can spy whole window in win 32 mode in app modeller and then you can see maximize action in navigation stage.
------------------------------
-----------------------
If I answered your query. Please mark it as the "Best Answer"
Harish Mogulluri
Lead developer
America/New_York TX
------------------------------
If I answered your query. Please mark it as the Best Answer
Harish Mogulluri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
14-09-23 07:21 AM
Hi Manoj,
As suggested by Harish switch to Win32 mode resize the browser window, spy the entire chrome window as shown in the below screenshot
Then using the element you'll get the Maximise option as shown below
Hope this helps...
------------------------------
Babjee Vangipurapu
Senior RPA Developer
Wonderbotz
India
------------------------------
Senior RPA Developer
India
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
14-09-23 09:39 AM
You can try this command after the URL --force-renderer-accessibility --start-maximized so that screen will be maximised automatically.
[URL] --force-renderer-accessibility --start-maximized
------------------------------
SYED FAHEEM
RPA Developer
DAR-ME
Asia/Kolkata
------------------------------
