Forum Discussion

hoadoan's avatar
hoadoan
Contributor
14 years ago

can't using direct alias to input data into text field


Hi all,



I want to fill data into text field. As normally, I use alias["Keys"] to input data



It like that 


  objPage = Aliases["iexplore"]["pBroadcastCalendarReport"];  

  objPage["txtBroadcastYear"]="2010"



But the data isn't filled on textfield. When I debug and objPage["txtBroadcastYear"]["Exists"] is False although it's shown on webpage



And I must a temporary variable to do that and it's work OK

objPage = Aliases["iexplore"]["pBroadcastCalendarReport"];  

var textbox=  objPage["txtBroadcastYear"]

textbox["Keys"]="2010"



Could anybody help me to explain what's different between two above ways?



Thanks so much

1 Reply


  • Hi Hoa,



    Both scripts you posted are invalid:

    ="2010" 

    ...

    textbox["Keys"]="2010"


    Most probably, this is just a mistyping. However, are you sure that you use the valid code in your test?



    Do you reload the tested web page between runs of this test?



    Also, please reproduce the problem, pack the entire project suite folder and post the archive here or send it to me via the Contact Support form.