|
-
May 15th, 2008, 01:07 AM
#1
Thread Starter
Evil Genius
Get browser control field accessed
Background:
Hi everyone! I was looking to possibly build a Windows app which could instead monitor my current actions on a website (in a real-time manner), and produce from these actions, a report in a step-by-step format, which could then be later be used for testing. Please note that I'm not looking to write a test automation tool here. Similar to the following:
1) From the web browser, navigate to http://InternalServer/WebApp1
2) Click the "Logon Name" textbox located in the top right of the webpage
3) Enter the text "alex_read" into this textbox
4) Click onto the password textbox located just beneath... etc. etc.
Question:
I'm not really too sure what to ask here or any terms for this to lookup in MSDN, but would anyone have any advice or tips on how I might go about this please??
I know if I was evaluating a Windows app, I could evaluate the mouse co-ordinates and use FindWindow, EnumWindows etc. to grab the control clicked on, but I was after this app to allow me to navigate to, and interact with many different internal web applications, each with their own layouts and controls.
I've never used a webbrowser control in a project, and have heard it exposes a webage's DOM, but could I achieve the above using this - picking up which control upon a webpage has been clicked, and (if any) what text was input into this please.
If not the webbrowser control, is there a better method of going about this, has anyone written anything similar to this before? Thanks! 
Edit: re-worded to try and explain this scenario a bit better.
Last edited by alex_read; May 15th, 2008 at 05:38 AM.
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
|