Jump to content
Sign in to follow this  
korigon

Problem with span id, FF.

Recommended Posts

korigon

Hello,

I have problem with span id.

On one page I have 10 similar spans:

Example:

<span id="exchange_value_amount_3991451" class="special">59</span>

<span id="exchange_value_amount_3991428" class="special">59.95</span>

I want to get value from span with lowest value (it's always first span). But numbers in span id change, so i can't us in _FFXPath.

I wrote this:

Func Sprawdzam()
        If _FFConnect() Then
            _FFOpenURL("$adress")
            _FFFrameEnter("table_list_offers", "id")
            $gold = _FFXPath("//span[@id='exchange_value_amount_3991451']", "TextContent")
            MsgBox(64, "Kurs", "Kurs wynosi: "&$gold)
        EndIf
EndFunc

And it works but when somebody will add new offer with lower value and with another span id, I will get outdate information. How can I get this information when span id always change?

I don't want to automate game, only get information about exchange rate.

PS. Sorry for my English :mellow:

Share this post


Link to post
Share on other sites
PsaltyDS

Please include "how you did it" when you get resolution. Searching the forum in only a valuable resource when the solution appears with the issue.

:mellow:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.