cancel
Showing results for 
Search instead for 
Did you mean: 

Get a value from a textbox in a website

SOLVED
Highlighted
Occasional Contributor

Get a value from a textbox in a website

Hello,

 

What's the best known method for getting a value from a textbox in a web site form?

Will the "aqObject.GetPropertyValue" method work for this?

Does anyone have examples for doing this?

Thanks in advance.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: Get a value from a textbox in a website

It might be simply a matter of something like this

 

Log.Message(Aliases.browser.myPage.myForm.myTextbox.wText)

It depends a lot on how the object is presented to test complete but many times the values of properties are just easily obtained by referencing the property itself.  


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

2 REPLIES 2
Highlighted
Community Hero

Re: Get a value from a textbox in a website

It might be simply a matter of something like this

 

Log.Message(Aliases.browser.myPage.myForm.myTextbox.wText)

It depends a lot on how the object is presented to test complete but many times the values of properties are just easily obtained by referencing the property itself.  


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

Highlighted
Occasional Contributor

Re: Get a value from a textbox in a website

Got it and it works. You the man! Thanks

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!

Retrieve Data from a Web Page

Participate!
Top Kudoed Authors