Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4559332
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:46:25+00:00 2026-05-21T17:46:25+00:00

i am using WATIN (i am using 2 days…)to get any web site’s content

  • 0

i am using WATIN (i am using 2 days…)to get any web site’s content like that:

Deault.aspx:

<body>
    <form id="form1" runat="server">
    <div>
    <asp:TextBox ID="some_textbox" runat="server"> </asp:TextBox>
    <asp:Button ID="submit_button" runat="server" Text="search" 
            onclick="submit_button_Click" />
    <asp:Label ID="lblMsg" runat="server" Text="" ></asp:Label>
    </div>
    </form>
</body>

My Client Codes via Watin(http://watin.org/documentation/getting-started/)


    private void button1_Click(object sender, EventArgs e)
        {
            //launch a new IE browser
            using (FireFox browser = new FireFox("http://localhost:3411/Default.aspx"))
            {
                //now we have access to the browser object
                //filling a textbox and clicking a button is as easy as
                browser.TextField(Find.ByName("some_textbox")).TypeText("foobar");
                browser.Button(Find.ByName("submit_button")).Click();

                //we can also access the full html of the page to perform regex matches, scrapes, etc...
                string fullPageSource = browser.Html;

            }
        }

i have 2 question:
1) i dislike to open in web browser it must be run back ground. because i will searh some data in 20-30 pages one event. PLease don’t monitor me web pages every thing must run back ground
2) i am writing textbox name button name or whatelse. i don’t have any idea textboxname or search button name because i will search some product in amazon.
i need some trick how to make a price comparison like http://www.pricegrabber.com/ WATIN is good idea or do you have any httprequest dll or method?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T17:46:26+00:00Added an answer on May 21, 2026 at 5:46 pm

    Watin is designed to drive the web browser in the same way that a user would. If you don’t want to open a web browser, neither Watin nor Watir is an effective solution to what you want to do. (legality issues aside).

    You’ll probably want to use some other means to make HTTP requests and then parse through the returned HTML, once that is you’ve gotten written permission from Amazon to access their site with a data gathering tool, since doing so without the permission is against their conditions of use.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using WatiN to parse my web site. I have a button that starts
How can I work with WatIn using async delegates? I tried, but it returned
I am writing automation scripts using WATIR and WATIN. Watir has something called page
Hi I'm in need to download a file from a site that requires Forms
I've just begun trying out WatiN as part of my testing platform for web
I'm trying to write a test that invokes a web service and tests it's
I'm using the following code to count the number of rows in an html
I am writing some BDD style Spec Flow test which is working out smoothly!
Just wondering whether there is a way to insert a bulk text message into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.