Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem in identifying the object
#1
Solved: 11 Years, 3 Months ago
Hi,

I am trying to identify the gmail objects with the following code in dp:

Code:
y = Browser("title:=Gmail").GetROProperty("name")
msgbox y
Above code is executing correctly and displaying the output.
But the below code on the same page is throwing the error,attached the screenshot of the error.
x = Browser("name:=Inbox (2,397) - paras.sidhu@gmail.com - Gmail#inbox").GetROProperty("name")
msgbox x

Please help.

Thanks,
Paras


Attached Files Image(s)
   
Reply
#2
Solved: 11 Years, 3 Months ago
Hi Paras,
it fails because "(", ")" , "." has got special meaning..hence it is handled through escape sequence "\" to consider their literal meaning.however this fails when the number changes.To handle that use regular expression.
Code:
x = Browser("name:=Inbox \(2,397\) - paras\.sidhu@gmail\.com - Gmail#inbox").GetROProperty("name")
msgbox x
or
Code:
msgbox Browser("CreationTime:=0").GetROProperty("name")
Reply
#3
Solved: 11 Years, 3 Months ago
Thanks Ravi... Its working fine.

Another small issue, while I am executing any of the script, when i click on the 'OK' button on the Run Dialog box, it is displaying some error message, attached the screenshot.

However, on clicking on the 'OK' button, code is getting executed properly. But not sure why that error is coming. Also, in include folder , there is no inc directory present.


Attached Files Image(s)
   
Reply
#4
Solved: 11 Years, 3 Months ago
Never encountered this error before.Not sure what's in that folder.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  HAVING PROBLEM IN CREATING OBJECT OF TEST BATCH RUNNER mayankchauhan 0 3,418 04-04-2014, 05:29 PM
Last Post: mayankchauhan
  not identifying the object properties seven 3 2,721 02-18-2014, 04:23 PM
Last Post: supputuri
  Runtime Object Identification Problem qapandit 9 6,274 07-02-2013, 04:14 AM
Last Post: qapandit
  Problem while adding description of an object using a varibale shibinp 2 3,397 08-25-2011, 10:51 AM
Last Post: shibinp
  Need Help in Identifying an Object ritesh 0 1,769 05-20-2010, 01:39 PM
Last Post: ritesh

Forum Jump:


Users browsing this thread: 2 Guest(s)