anOldLongUser Posted June 25, 2015 Posted June 25, 2015 (edited) Hello sirs,currently i am looking for a way to read console.log from a web page opened by FF.au3, here is my code.when i manually browse facebook.com and open the console ( F12 ) , i can see facebook message warn us from pasting anything there.however when i try to get the console.log from FF.au3 the code just return this : function() {...}thank you for the help#include 'FF.au3' _FFStart("https://www.facebook.com/?_rdr","default",2,false)If _FFIsConnected() Then Sleep(3000) $log = _FFCmd("window.console.log") If Not @error Then MsgBox(64,"Log:",$log)EndIf Edited June 25, 2015 by anOldLongUser
Danp2 Posted June 25, 2015 Posted June 25, 2015 Windows.Console.Log is a function for writing information to the log.Not sure how / if you can retrieve information from the console log. Latest Webdriver UDF Release Webdriver Wiki FAQs
anOldLongUser Posted June 26, 2015 Author Posted June 26, 2015 hello,i just figure out, i just need to use :javascript : window.document.title={data in console log}and in autoit :$sHref = _FFCmd(".title") If Not @error Then MsgBox(64,"Current href:",$sHref) this seem a little dirty hack but it works in my case. thank everyone for help
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