Jump to content


 

Help For Automation a website



7 replies to this topic

#1 aggarwal

    Member

  • Full Members
  • Pip
  • 25 posts

Posted 31 January 2012 - 10:43 PM

Hello

I am pretty new to autoit and programming. I recently got a project which requires me to browse through the webpage and then I end up on a web page which looks like having java code in it. have to select an option and it will expand the table and give me another option to click upon. so like if I select a quaterly state income it expands the table giving me a few more suboption which when cliucked takes me to the next page. I am attaching a screen shot of the web page. If someone could help me get started with what I shpould do would be really appreciated!!

Attached Thumbnails

  • Attached Image: screenshot.JPG




#2 JScript

    Every passing day I learn more with you all!

  • Full Members
  • PipPipPipPipPip
  • 630 posts
  • Gender:Male
  • Location:Brazil

Posted 31 January 2012 - 10:55 PM

Wrong place dude!

The moderator moved very quickly!

João Carlos.

Edited by JScript, 31 January 2012 - 10:57 PM.

In any language is high or low level at which a code is compiled and the author did not publish the source and not declared as open source, is strictly prohibited decompilation and publication! Otherwise, you will be violating the rules of programming, either AutoIt or any other language!

The world is made of rules, imagine if Nature broke the rules imposed by the Creator!



http://notebook.forumais.com (Forum Maintenance Notebooks and Desktop)
Posted Image
http://autoitbrasil.com/


#3 DaleHohm

    Think of IE as an API...

  • AutoIt MVPs (MVP)
  • 5,661 posts
  • Location:Colorado

Posted 01 February 2012 - 03:42 AM

I was able to quickly found that page on the internet, but it would have been much better if you had volunteered it...

Turns out that the things inside that expanded table are just simple links, so this works:

[ autoIt ]    ( Popup )
#include <IE.au3> $oIE = _IEAttach("Bureau") _IELinkClickByText($oIE, "Taxes on Production and Imports less Subsidies")

Dale
IE.au3 issues with Vista - Workarounds, Automate input type=file (Related)
SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y
Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl
MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model,
Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded

Find and harvest Enum constants for COM code
AutoIt Snippets Database - you too can contribute!

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble
Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

#4 aggarwal

    Member

  • Full Members
  • Pip
  • 25 posts

Posted 01 February 2012 - 11:02 PM

Thanks a lot for the for the help. This thing solved my problem a big time!!

#5 aggarwal

    Member

  • Full Members
  • Pip
  • 25 posts

Posted 01 February 2012 - 11:55 PM

Hey Dave I got stuck again. i did as you told and I selected "Personal income (SQ1)". But now there comes a form which i am unable to comprehend as to how to click in it. What I thought was doing this

$oForm = _IEFormGetObjByName($oIE, "Area")
$oSelect = _IEFormElementGetObjByName($oForm , "7026")
_IEFormElementOptionSelect($oSelect, "Iowa", 1, "byText")

But I end up getting this thing runtime error

IE.au3 V2.4-0 Warning from function _IEFormGetObjByName, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementOptionSelect, $_IEStatus_InvalidDataType

And by the way the website is http://bea.gov/iTable/index_regional.cfm>select begin using data>Quaterly State Personal Income>Personal Income(SQ1)

And thanks in advance

#6 aggarwal

    Member

  • Full Members
  • Pip
  • 25 posts

Posted 03 February 2012 - 10:08 PM

No Help?? <_<

#7 DaleHohm

    Think of IE as an API...

  • AutoIt MVPs (MVP)
  • 5,661 posts
  • Location:Colorado

Posted 04 February 2012 - 03:02 AM

Again, by looking at the source code for that page, the link is:
[ code='text' ]    ( Popup )
<A class=tableLinks onclick="getNextStep(2, 336,1, 0, 70); return false" href="[url="http://bea.gov/iTable/iTable.cfm?ReqID=70&amp;step=1"]http://bea.gov/iTable/iTable.cfm?ReqID=70&amp;step=1[/url]#" target=_blank>Personal income (SQ1)</A>

So use the same technique as above and substitute "Personal income (SQ1)" for "Taxes on Production and Imports less Subsidies"

There are no forms involved (note the console message saying there was no match for your form).

Dale
IE.au3 issues with Vista - Workarounds, Automate input type=file (Related)
SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y
Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl
MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model,
Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded

Find and harvest Enum constants for COM code
AutoIt Snippets Database - you too can contribute!

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble
Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

#8 aggarwal

    Member

  • Full Members
  • Pip
  • 25 posts

Posted 09 February 2012 - 08:45 PM

hello Dale

I think we are talking about different pages here. The next page after going through personal income is the one in which i need to select various option like the United states ans the year. And then hit next.
I hope to hear and get jhelp from you soon.
And thanks In advance





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users