Jump to content

_ffcmd_err . _ffcmd ( Javascript erros )


Recommended Posts

#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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...