most powerful web automation
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: most powerful web automation

  1. #1
    Join Date
    Aug 2012
    Posts
    3

    most powerful web automation

    hello!

    I still havent find an easy way for web automation

    learning JS, Greasemonkey and such is kinda cumbersome and has severe limitations (eg. cannot write data to a simple text file)

    I have so far, found these tools:
    Mechanize
    UBot
    Selenium
    Watir

    are there any more?

    which is the best? the most powerful? even if I have to learn more

    I want to (hopefully easily) be able to automate web browsing actions, for example:

    1) be able to set triggers, such as:
    - a specific url (that matches a regex pattern) has loaded
    - a specific website control (eg. button, form, drop down menu, etc) has loaded
    - a specific drop down menu has been selected
    - a specific text appears in the loaded webpage
    - a specific link has been loaded
    - a specific form contains specific text
    etc

    2) which above triggers will trigger specific actions, such as:
    - click a specific button in a webpage
    - open a specific webpage
    - close a specific tab
    - save a specific website file (that matches a regex pattern)
    - bookmark a specific url
    - select a specific entry in a specific drop down menu
    - copy text from specific area of a webpage, and use that text to save it in a text file or to do other actions, like fill forms with specific text, etc
    - reload a specific webpage
    - read a txt, xls or whatever file and extract specific text from it to fill a specific website form

    3) also triggers could be specific mouse or keyboard shortcuts that trigger specific actions

    - wait until a specific control (eg. a radio button with specific text, a specific link with specific label, etc) in a specific webpage is loaded
    - wait until a specific control gets a specific value (eg a specific tickbox gets ticked, a specific form gets specific text inside it, etc)
    - be able to specify controls, by their size, color, position in the webpage, name, type (eg button), etc
    - be able to select specific area in a webpage or specific control(s) and extract the text from it, or save a screenshot of it, or save that portion of the webpage as a html/mht, or change its background color, etc
    - be able to match text inside forms that I type, or that already are present in, by regex
    - be able to perform all kind of clicks (right, left, middle, etc) and keypresses in specific coordinates, control, etc of the webpage

    being able to interact with Windows API would be best too!!

    in general, I want to be able to do what a human can do in the web, browse, see, check, save, interact, fill, extract, everything in any website, automatically

    thanks!

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,011

    Re: most powerful web automation

    And how and where is such an application supposed to be used?
    Victor Nijegorodov

  3. #3
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    5,877

    Re: most powerful web automation

    ..and what this all has to do with Visual C++ Programming?

    being able to interact with Windows API would be best too!!

    in general, I want to be able to do what a human can do in the web, browse, see, check, save, interact, fill, extract, everything in any website, automatically
    In general this severely conflicts with browser security concepts. Oops.
    Best regards,
    Igor

  4. #4
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    5,877

    Re: most powerful web automation

    Quote Originally Posted by VictorN View Post
    And how and where is such an application supposed to be used?
    My best guess is: QA department.
    Best regards,
    Igor

  5. #5
    Join Date
    Aug 2012
    Posts
    3

    Re: most powerful web automation

    Quote Originally Posted by Igor Vartanov View Post
    In general this severely conflicts with browser security concepts. Oops.
    Lily programming language, doesnt do that exactly?

  6. #6
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    3,643

    Re: most powerful web automation

    you can do all of that if you write your own application that hosts a IWebBrowser2. Though it requires quite a bit of work to tie it all together.

    The bad side of it is that changes to the needs will require changes to the C++ code (and recompiles/redeployments), which is why tools such as greasemonkey exist where you just change script.

    You can of course implement your own scripting as well, but ... that's a whole lot of extra work too.

  7. #7
    Join Date
    Aug 2012
    Posts
    3

    Re: most powerful web automation

    Quote Originally Posted by OReubens View Post
    you can do all of that if you write your own application that hosts a IWebBrowser2. Though it requires quite a bit of work to tie it all together.
    I would prefer it to work with Firefox API or Opera API, since I never use Internet Explorer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center