03-19-2013, 11:55 PM
scenario is that, I have a home button. I need to click this buton on page1 first and page 2 second.
Now when I object spy on first page I see page title prop is diff.
same thig happens for page also.
Hence I used regular expression as I didnt wanted to add those objects in Object repository.
This also didnt work. Please note I have used descriptive programming for Obj_Mobiles
Now when I object spy on first page I see page title prop is diff.
same thig happens for page also.
Hence I used regular expression as I didnt wanted to add those objects in Object repository.
Code:
If Browser("name:=Mobile.*","Creationtime:=0").Page("tilte:=Mobile.*").Link(Obj_Mobiles).Exist(2) then
Browser("name:=Mobile.*","Creationtime:=0").Page("tilte:=Mobile.*").Link(Obj_Mobiles).Click
This also didnt work. Please note I have used descriptive programming for Obj_Mobiles