#1
Posted 31 January 2012 - 10:43 PM
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!!
#2
Posted 31 January 2012 - 10:55 PM
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)

http://autoitbrasil.com/
#3
Posted 01 February 2012 - 03:42 AM
Turns out that the things inside that expanded table are just simple links, so this works:
#include <IE.au3> $oIE = _IEAttach("Bureau") _IELinkClickByText($oIE, "Taxes on Production and Imports less Subsidies")
Dale
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
Posted 01 February 2012 - 11:02 PM
#5
Posted 01 February 2012 - 11:55 PM
$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
Posted 03 February 2012 - 10:08 PM
#7
Posted 04 February 2012 - 03:02 AM
<A class=tableLinks onclick="getNextStep(2, 336,1, 0, 70); return false" href="[url="http://bea.gov/iTable/iTable.cfm?ReqID=70&step=1"]http://bea.gov/iTable/iTable.cfm?ReqID=70&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
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
Posted 09 February 2012 - 08:45 PM
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












