I Can able to select from city but can not able select to city as If I click and select to city from list control is going to from city only. Two times selected item is coming in From city text box only.
PF script below.
-----------------------------------------------------------------------------
SystemUtil.Run "C:\Program Files\Mozilla Firefox\firefox.exe"
Browser("creationtime:=0").Navigate "goindigo.in"
Set myPage=Browser("creationtime:=0").Page("title:=.*")
myPage.WebEdit("name:=or-src").Click
selectCity "Bengaluru"
myPage.WebEdit("name:=or-dest").Click
selectCity "Delhi"
Function selectCity(cityName)
Set desc=Description.Create
desc("micclass").Value="WebElement"
desc("class").Value="autocomplete-result station-result clearfix airport-item pop-dest-stn"
Set childObjs=myPage.ChildObjects(desc)
For i = 0 To childObjs.Count-1 Step 1
Dim city
city=childObjs(i).GetROProperty("text")
a=split(city,",")
If a(0)=cityName Then
'print a(0)
childObjs(i).Click
Exit For
End If
Next
End Function
-----------------------------------------------------------------------------