symadis Posted February 22, 2010 Posted February 22, 2010 Hi all, I want to get the value of an input wit FF.au3 I have this in the source of my page: <input id="trackingNumber" class="display" style="text-align: center" size="36" readonly="readonly" tabindex="-1" value="ASWF12352SDSHJYY"/> i know this shows the title, i think i need to do the same, but i'm missing the other argument to get an input value: _FFCmd( ".title") I know it should be easy , I have read the documentation and think I should use _FFCmd but I don't know how to handle it. Can someone help me? Many thanks
Stilgar Posted February 23, 2010 Posted February 23, 2010 Hi all, I want to get the value of an input wit FF.au3 I have this in the source of my page: <input id="trackingNumber" class="display" style="text-align: center" size="36" readonly="readonly" tabindex="-1" value="ASWF12352SDSHJYY"/> i know this shows the title, i think i need to do the same, but i'm missing the other argument to get an input value: _FFCmd( ".title") I know it should be easy , I have read the documentation and think I should use _FFCmd but I don't know how to handle it. Can someone help me? Many thanks Just try this: _FFGetValue("trackingNumber", "id") _FFCmd is for direkt access via Javascript. jEdit4AutoIt PlanMaker_UDF
symadis Posted February 24, 2010 Author Posted February 24, 2010 Just try this: _FFGetValue("trackingNumber", "id") _FFCmd is for direkt access via Javascript. Wow many thanks Stilgar! That was the only option i didn't find a link or syntax to use it in documentation, but it was not so difficult. Thanks again for your time! Loris
symadis Posted March 22, 2010 Author Posted March 22, 2010 And if I want to get value of this span if it exist in the source: ....... <span id="errors" class="errorHeader">Last name contains invalid characters.<br/>Telephone Number contains invalid characters.<br/>Passport Number contains invalid characters.</span> ...... What do I must use? _FFXPath, _FFGetValue or _FFReadHTML ? can I search for a span by id with _FFReadHTML? Thanks, Loris
symadis Posted March 22, 2010 Author Posted March 22, 2010 I found it, MsgBox(64,"Errors",_FFXPath("//span[@id='errors']","TextContent")) That was easy!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now