cannot enter data to a <textarea> control
I am writing tests for a web application. On one page, there is a <textarea></textarea> control. I tried to record the actions of typing data into the control, but the recorded test seems not able to record the text entered.
I tried to write script to enter data, it also failed. I tried two ways to do it, but both did not work.
Can anyone help to let me know how to work this out? Your help are appreciated!
The two options that I tried:
1)
txtObj.Click()
aqutils.Delay(50)
txtObj.SetText(inpVal)
aqutils.Delay(50)
txtObj.Keys("[Tab]")
aqutils.Delay(50)
2)
txtObj.Click()
aqutils.Delay(50)
txtObj.wText = inpVal
aqutils.Delay(50)
txtObj.Keys("[Tab]")
aqutils.Delay(50)
The pic is the <textarea> in inspection window. I believe this control is an ASP.net control.
What happens if you try
txtObj.Keys(inpVal)