Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A few questions
#2
So it looks like what you want to do is make a program that essentially downloads the file from a download button. Well, that is definitely possible. Each button is hardlinked to a file somewhere in it's coding, so all you have to do is inspect the code in order to see what file you need to grab.

To answer your questions specifically:
1] Well, you must have some link to the file
2] The WebBrowser class has its own set of controls that will allow you to do exactly what WatiN does.
3]In order to get the link attached to a button, the first thing you will need to do is get the name of the button. This can be done by viewing the site's source code.

Then, you will have to use something like
Code:
browser.Button(Find.ByName("ButtonName")).Link()

I do not know the exact code, but it should be something along those lines.
My Blog | My Setup | My Videos | Have a wonderful day.


Messages In This Thread
A few questions - by brco900033 - 07-19-2012, 09:37 AM
Re: A few questions - by brandonio21_phpbb3_import2 - 07-19-2012, 12:36 PM
Re: A few questions - by brco900033 - 07-21-2012, 03:07 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)