Jump to content

Recommended Posts

Posted

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:

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
×
×
  • Create New...