newbie1410 Posted November 24, 2015 Posted November 24, 2015 #Include <FF.au3> _FFConnect() If _FFIsConnected() Then ; href of the current page $sHref = _FFCmd("window.document.querySelectorAll('.list2')[0].textContent") Sleep(2000) If Not @error Then MsgBox(64,"Current href:",$sHref) Else MsgBox(64,"Error:","Can't conncect to FireFox") EndIfI use the syntax " window.document.querySelectorAll('.list2')[0].textContent " is correct in firefox. but in autoit the error message.:(,
Danp2 Posted November 24, 2015 Posted November 24, 2015 Have you tried calling _FFWindowSelect first, so that the active window has been defined? Latest Webdriver UDF Release Webdriver Wiki FAQs
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