Jump to content
Sign in to follow this  
newbie1410

_ffcmd_err . _ffcmd ( Javascript erros )

Recommended Posts

newbie1410
#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")
EndIf

I use the syntax " window.document.querySelectorAll('.list2')[0].textContent  " is correct in firefox. but in autoit the error message.

:(,

 

Capture.PNG

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×