Monday 22 July 2013

Code to Find Email on Basis of Subject & then Open Email

rows = Browser(”name:=Gmail – Inbox”).page(”title:=Gmail – Inbox”).webtable(”html tag:=TABLE”,”name:=t”).GetROProperty(”rows”)

  For i=0 to rows
 set op=Browser(”name:=Gmail – Inbox”).Page(”title:=Gmail – Inbox”).webtable(”html tag:=TABLE”,”name:=t”).childobjects(objects)
 
   op(i).Click
 
   Exit For

 End if
  Next

  
    a = Browser(”name:=Gmail – Inbox”).page(”title:=Gmail – Inbox”).webtable(”html tag:=TABLE”,”name:=t”).GetCellData(i,2)
  
    print(a)
  If a =”xyz” Then

      Set objects=Description.Create
 objects(”html tag”).value=”A”
      
 objects(”name”).value=”t”





No comments:

Post a Comment