05-22-2012, 08:32 PM
Praveen,
DP and OR can work together in combination with some limitations.
Suppose you are writing a code like..
Let me know if you need further clarification.
Regards,
Ankesh
DP and OR can work together in combination with some limitations.
Suppose you are writing a code like..
Code:
Browser("BrowserName").Page("PageName").WebEdit("ORLogicalName").Set "xyz"
Once you start using DP in the statment, the rest of the hierarchy should also be in DP, you can not use OR for them.
'Below code will work
Browser("BrowserName").Page("PageName").WebEdit("name:=xyz").Set "xyz"
'where as the below code will not work as for browser and page we have 'use DP so the rest of the hierarchy should alos use dp, u can not 'use OR for them.
Browser("title:=BrwTitle").Page("title:=PageTitle").WebEdit("ORLogicalName").Set "xyz"
Regards,
Ankesh