|
-
June 14th, 2006, 02:21 PM
#1
Insert text into webpage textbox
Hi,
I used WebBrowser to load a webpage in my dialog. Now I want to insert text into a webpage's textbox (e.g., username textbox on gmail), but I have not thought how to solve this problem yet. Please help me again!
Thanks so much.
-
February 24th, 2009, 10:20 AM
#2
Re: Insert text into webpage textbox
have you found a solution for this issue?
Mr. Burns
-
February 24th, 2009, 02:12 PM
#3
Re: Insert text into webpage textbox
If you need to do this automatically, you can use Active Accessibility.
-
August 19th, 2011, 08:09 PM
#4
Re: Insert text into webpage textbox
I would like to know that too
I found this:
Code:
Use the document property to get a reference to the loaded document in the control. You can then use the GetElementById to get a reference to the textbox element. Then you can use the SetAttribute on the element to set its "value" and the InvokeMember to "submit" the form.
but thats hard to understand without code examples for a beginner
-
August 21st, 2011, 06:45 AM
#5
Re: Insert text into webpage textbox
come on guys,
there gotta be someone who can help solve the puzzle
-
August 25th, 2011, 08:34 PM
#6
Re: Insert text into webpage textbox
OK I almost got it now,
The only problem left is that I cant click the button on the Site,
I tried:
Code:
webBrowser1.Document.GetElementById("button").InvokeMember("click");
and
webBrowser1.Document.All["button"].InvokeMember("click");
I also tried some other codes but failed
the site where the button is is: linksafeme.me
-
August 27th, 2011, 04:00 AM
#7
Re: Insert text into webpage textbox
prince1, please do not revive old threads. Make a new one
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|