cls_1231 Posted August 12, 2017 Share Posted August 12, 2017 Good evening my friend, I'm here for a consultation, well I'm interacting with a web where I want to look for a string of numbers on the web and if you find the text continue to click on an image or link, the steps I followed are: #include <FF.au3> _FFConnect () $Balance = "200" If _FFReadText ($ balance) Then ---- here would the code to click on the image or link if you find the number "200" on the web, ---- EndIF I await your response, thank you. Link to comment Share on other sites More sharing options...
junkew Posted August 12, 2017 Share Posted August 12, 2017 (edited) See faq 31 but in your example most likely ffclick. http://english.documentation.ff-au3.thorsten-willert.de Edited August 12, 2017 by junkew FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
Danp2 Posted August 12, 2017 Share Posted August 12, 2017 As suggested by junkew, definitely review the documentation for _FFReadText. FWIW, you can't call it in the manner that you posted above. Instead do the following -- $sText = _FFReadText() If StringInStr($sText, $Balance) Then ... Endif Since a value can occur in multiple places on a website, there are likely more reliable ways to test for the presence of a specific value. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
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