Hi,
Please check the below code and let me know if it is not working
''CLicking on Date Webelement
Browser("name:=MakeMyTrip.*").Page("title:=MakeMyTrip.*").WebElement("outertext:=Select
Date","index:=0").Click
''Getting a today date
idate=date()
idatevalue=Split(idate,"/")
idateval=Trim(idatevalue(1))
''Getting the today date row n the From Webtable
row=Browser("name:=MakeMyTrip.*").Page("title:=MakeMyTrip.*").WebTable("column
names:=Mon;Tue;Wed;Thu;Fri;Sat;Sun","index:=0").GetRowWithCellText(idateval)
''Getting the column count for the todays date row
ccount=Browser("name:=MakeMyTrip.*").Page("title:=MakeMyTrip.*").WebTable("column
names:=Mon;Tue;Wed;Thu;Fri;Sat;Sun","index:=0").ColumnCount(row)
For i=1 to ccount
CellData=Browser("name:=MakeMyTrip.*").Page("title:=MakeMyTrip.*").WebTable("column
names:=Mon;Tue;Wed;Thu;Fri;Sat;Sun","index:=0").GetCellData(row,i)
If CellData=idateval Then
Set
iObj=Browser("name:=MakeMyTrip.*").Page("title:=MakeMyTrip.*").WebTable("column
names:=Mon;Tue;Wed;Thu;Fri;Sat;Sun","index:=0").ChildItem(row,i,"Link",0)
iObj.Click
Exit For
End If
Next''CLicking on Date Webelement
Browser("name:=MakeMyTrip.*").Page("title:=MakeMyTrip.*").WebElement("outertext:=Select
Date","index:=0").Click
''Getting a today date
idate=date()
idatevalue=Split(idate,"/")
idateval=Trim(idatevalue(1))
''Getting the today date row n the From Webtable
row=Browser("name:=MakeMyTrip.*").Page("title:=MakeMyTrip.*").WebTable("column
names:=Mon;Tue;Wed;Thu;Fri;Sat;Sun","index:=0").GetRowWithCellText(idateval)
''Getting the column count for the todays date row
ccount=Browser("name:=MakeMyTrip.*").Page("title:=MakeMyTrip.*").WebTable("column
names:=Mon;Tue;Wed;Thu;Fri;Sat;Sun","index:=0").ColumnCount(row)
For i=1 to ccount
CellData=Browser("name:=MakeMyTrip.*").Page("title:=MakeMyTrip.*").WebTable("column
names:=Mon;Tue;Wed;Thu;Fri;Sat;Sun","index:=0").GetCellData(row,i)
If CellData=idateval Then
Set
iObj=Browser("name:=MakeMyTrip.*").Page("title:=MakeMyTrip.*").WebTable("column
names:=Mon;Tue;Wed;Thu;Fri;Sat;Sun","index:=0").ChildItem(row,i,"Link",0)
iObj.Click
Exit For
End If
Next
Thanks & Regards,
Venkat Reddy Bandaru
[email protected]
+91.9884524606
On Tue, May 19, 2015 at 9:49 PM, <[email protected]> wrote:
> Hi Group,
>
> Can anyone explain step by step procedure how to select dynamically a
> desired date from a Date Picker of Makemytrip.com or expedia applicaton
>
> explain the code..It can help me a lot and others also.
>
>
>
>
>
> .
>
>
> --
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.