Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reading the position (x,y) of a text in WebElement
#1
Not Solved
Hi,

I need to get the position of some text displayed in a webelement.

Please help me with how to get the position - X & Y of the text in web element.

Thanks in Advance.

With Regards,
Prabhakaran
Reply
#2
Not Solved
well u can try the following----



Code:
Set obj = CreateObject ("Mercury.DeviceReplay")
absx = Browser("").Page("").WebElement(".").GetROProperty("abs_x")
absy = Browser("").Page("").WebElement(".").GetROProperty("abs_y")
Set obj = Nothing



Mention the property of text in WebElement on above line....n let me know whether its working or not...
Reply
#3
Not Solved
hi
you want the abs_x,abs_y means you can get through object spy itself.... or else use GetROProperty
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading XML Data from a WebPage shaan.mishra87@gmail.com 1 2,251 09-28-2016, 09:16 PM
Last Post: supputuri
  Reading an amount from statement shipu 0 1,925 12-24-2013, 01:42 AM
Last Post: shipu
  VB Script:number of times a character appears in a string with position Jyobtech 1 12,133 08-07-2013, 01:03 PM
Last Post: anil2u
  Read text from text file and save it into a variable in qtp arpan 3 13,057 06-19-2013, 08:34 PM
Last Post: arpan
  Need to compare two text files - ignoring some text nelly27281 2 4,620 09-09-2012, 12:09 PM
Last Post: freeboynil

Forum Jump:


Users browsing this thread: 1 Guest(s)