korigon Posted June 28, 2010 Posted June 28, 2010 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
PsaltyDS Posted June 28, 2010 Posted June 28, 2010 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. 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
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