topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday December 14, 2024, 8:23 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: web automation  (Read 10609 times)

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,824
    • View Profile
    • Donate to Member
web automation
« on: July 18, 2014, 11:48 AM »
hello

for Windows automation, Autohotkey seems quite powerful

but what about web automation? like simulate clicks, checks, web actions like select text, save text, save files, open links, etc

many years ago when I researched this field, there were limited options

Selenium, Greasemonkey, Chickenfoot, etc existed, but none had any straightforward powerful web automation approach, well developed as Autohotkey (with numerous commands and event triggers for pretty much everything)

any update?

thanks!

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,824
    • View Profile
    • Donate to Member
Re: web automation
« Reply #1 on: July 20, 2014, 07:24 AM »
89 views and no one??????

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: web automation
« Reply #2 on: July 20, 2014, 09:26 AM »
I use a little with iMacros. But I consulted in the past and is not compilable.
Automation Anywhere is a expensive and professional solution. But is simple to learn and very assisted.
I think Automation Anywhere and Win Automation have simmilarities in the conceptual.
There are a lot of tools for the vast fields of SEO and managing the web.
I think the best way is an interactive tool able to recognize with OCR everything and a very visual environtment to develop.
The files like a txt with code is from The Stone Age.....
 :-\

the3seashells

  • Participant
  • Joined in 2006
  • *
  • Posts: 19
  • "Is that what you call this?"
    • View Profile
    • Donate to Member
Re: web automation
« Reply #3 on: July 21, 2014, 06:59 AM »
Although I have not personally used it, it looks like Sahi has all of the features that you are looking for.

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,824
    • View Profile
    • Donate to Member
Re: web automation
« Reply #4 on: July 21, 2014, 07:18 AM »
Although I have not personally used it, it looks like Sahi has all of the features that you are looking for.
-the3seashells (July 21, 2014, 06:59 AM)
looks promising, thanks!

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: web automation
« Reply #5 on: July 23, 2014, 11:24 AM »
Although I have not personally used it, it looks like Sahi has all of the features that you are looking for.
-the3seashells (July 21, 2014, 06:59 AM)
I'll take a look too.
Best Regards

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,824
    • View Profile
    • Donate to Member
Re: web automation
« Reply #6 on: September 02, 2014, 07:39 AM »
is there any other option?

I want to create my own standalone programs that automate webpages and secure them with password so that the source won't be visible! and sell them!

as I can do with AutoHotKey for desktop automation programs!

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: web automation
« Reply #7 on: September 02, 2014, 08:43 AM »
is there any other option?

I want to create my own standalone programs that automate webpages and secure them with password so that the source won't be visible! and sell them!

as I can do with AutoHotKey for desktop automation programs!

I've done a lot of web automation in the past using Visual Studio. I don't know if that's an option for you. There are a few tricks that you need to know to get things smooth, but it does work.
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,824
    • View Profile
    • Donate to Member
Re: web automation
« Reply #8 on: September 09, 2014, 04:03 PM »
help! I cannot even run Sahi! there is no .exe! isn't it a GUI?

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,824
    • View Profile
    • Donate to Member
Re: web automation
« Reply #9 on: September 14, 2014, 07:27 AM »
is there any other option?

I want to create my own standalone programs that automate webpages and secure them with password so that the source won't be visible! and sell them!

as I can do with AutoHotKey for desktop automation programs!

I've done a lot of web automation in the past using Visual Studio. I don't know if that's an option for you. There are a few tricks that you need to know to get things smooth, but it does work.

how do you get VS to "see" a radio button or a text form in a website?

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: web automation
« Reply #10 on: September 14, 2014, 08:39 AM »
is there any other option?

I want to create my own standalone programs that automate webpages and secure them with password so that the source won't be visible! and sell them!

as I can do with AutoHotKey for desktop automation programs!

I've done a lot of web automation in the past using Visual Studio. I don't know if that's an option for you. There are a few tricks that you need to know to get things smooth, but it does work.

how do you get VS to "see" a radio button or a text form in a website?

Here's an example:

Code: C# [Select]
  1. // This is the basic method to use when a document loads. Expect problems and check StackExchange.
  2. private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
  3. {
  4.         // Get a collection of all the kinds of elements that you want to look at.
  5.         // In this case, we're looking for <input> tags.
  6.         HtmlElementCollection collection = webBrowser1.Document.GetElementsByTagName("input");
  7.  
  8.         // Run through the collection and look for a specific element.
  9.         foreach (HtmlElement element in collection) {
  10.                
  11.                 // Check the name of the element.
  12.                 if (element.Name == "user") {
  13.                         element.InnerText = "kalos";
  14.                 }
  15.  
  16.                 // Check if the element has a specific attribute.
  17.                 if (element.GetAttribute("type") == "password") {
  18.                         this.Text = "Found it!";
  19.                         element.InnerText = "some password";
  20.                 }
  21.         }
  22. }
  23.  
  24. // This shows clicking a sbumit button.
  25. private void button1_Click(object sender, EventArgs e)
  26. {
  27.         // Get a collection of all the kinds of elements that you want to look at.
  28.         // In this case, we're looking for <input> tags.
  29.         HtmlElementCollection collection = webBrowser1.Document.GetElementsByTagName("input");
  30.  
  31.         // Run through the collection and look for a specific element.
  32.         foreach (HtmlElement element in collection) {
  33.  
  34.                 // Check if the element has a specific attribute.
  35.                 if (element.GetAttribute("type") == "submit") {
  36.                         this.Text = "Found the submit button!";
  37.                         // This is how you click. It is not always 100% reliable.
  38.                         element.InvokeMember("Click");
  39.                 }
  40.         }
  41. }

Here's the compiled version:

* WebBrowserForKalos.zip (39.53 kB - downloaded 309 times.)

It should look like this:

Screenshot - 2014_09_14 , 11_38_32 PM.png

I think that should be enough to get you started.

Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,824
    • View Profile
    • Donate to Member
Re: web automation
« Reply #11 on: September 14, 2014, 08:58 AM »
thanks!