Sign in to follow this  
Followers 0
symadis

FF.au3 get input value

5 posts in this topic

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

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

I found it,

MsgBox(64,"Errors",_FFXPath("//span[@id='errors']","TextContent"))

That was easy!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0