Forum Discussion

mangelastro's avatar
mangelastro
New Contributor
13 years ago

Trouble using the NativeWebObject.Find on the Falafel Training web application

Can anyone help provide the VB code for how to get the NativeWebObject.Find method to work, I can't seem to find the 'UserName' field using this method.



When I use the following code, I can't seem to locate the UserName field.



Dim userName

TestedApps.iexplore.Run()

Aliases.iexplore.ToURL("http://training.falafel.com/Orders/")

userName = Sys.Process("iexplore").Page("*").NativeWebObject.Find("id", "*UserName*", "input")

userName.Text = "training"



But when I run the script, 'training' doesn't get populated in the UserName field. 



Any ideas?



Thanks everyone.

1 Reply

  • Hello Mike,


    You need to correct one line of your code like this:



    Once you do this, the code should work fine. If you face any playback errors, please post them here.