1. Dashboard
  2. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  3. Forenregeln
  4. Forum
    1. Unerledigte Themen
  • Anmelden
  • Registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
  1. AutoIt.de - Das deutschsprachige Forum.
  2. Forum
  3. AutoIt 3
  4. Projekte
  5. Firefox-Automatisierung

_FFXPath Problem

  • Deaken
  • 26. November 2015 um 13:51
1. offizieller Beitrag
  • Deaken
    Beiträge
    29
    • 26. November 2015 um 13:51
    • #1

    Hallo,

    ich habe ein Problem mit _FFXPath. Bereits die zweite Abfrage unter dem Beispiel von http://ff-au3-example.thorsten-willert.de/ funktioniert nicht mehr, es erscheint bei der ersten Abfrage noch der Wert 1, Alle weiteren Abfragen liefern mir in der MSgBox nur ein OBJECT|FFXpath.au3.

    Firefox version 42.0, FF.au3 version 0.6.0.2b, mozrepl 1.1.2.1

    Gruß

  • Deaken
    Beiträge
    29
    • 30. November 2015 um 14:19
    • #2

    Hat niemand einen Tip für mich? :(

  • Oscar
    Moderator
    Reaktionen
    8
    Beiträge
    7.381
    • 30. November 2015 um 14:24
    • Offizieller Beitrag
    • #3

    Wo ist Dein Script?

    MfG. Oscar

    Forum: Arduino, Elektronik, AutoIt

  • Deaken
    Beiträge
    29
    • 30. November 2015 um 14:52
    • #4

    Oh sorry, dachte es ist bekannt. Es geht um das Example von der function _FFXPath:

    http://german.documentation.ff-au3.thorsten-willert.de/ff_functions/_FFXPath.php

    Code:

    AutoIt
    #Include <Array.au3>
    #Include <FF.au3>
    
    
    If _FFConnect() Then
    	_FFTabAdd( "http://ff-au3-example.thorsten-willert.de/")
    
    
    	; counting the number of results from the Xpath query
    	MsgBox(64, "Number of password fields:", _FFXPath( "//input[@type='password']", "", 10))
    
    
    	; the textContent from the query result
    	MsgBox(64, "Fieldset-Legend:", _FFXPath( "//form[1]/fieldset/legend"))
    
    
    	; the textContent from option 2
    	MsgBox(64, "Text from 0ption 5:", _FFXPath( "//option[2]"))
    
    
    	; Method and action of the first form
    	$vTmp = "Method: " & _FFXPath( "//form[1]/@method") & @crlf
    	$vTmp &= "Action: " & _FFXPath( "//form[1]/@action")
    	MsgBox(64, "Form 2", $vTmp)
    
    
    	; array with the textContent of all options
    	$aArray = _FFXPath("//option","value",7)
    	_ArrayDisplay($aArray)
    
    
    	; working with the object returned from the query
    	_FFXPath("//form[1]//input[@type='checkbox' and position()=2]","",9)
    	MsgBox(64,"", _FFObj("xpath.type") & @crlf & _FFObj("xpath.value"))
    	_FFObj("xpath.checked=true")
    
    
    EndIf
    Alles anzeigen
  • Deaken
    Beiträge
    29
    • 2. Dezember 2015 um 20:43
    • #5

    Es würde mir schon helfen, wenn jemand die gleichen Fehler bekommt. UDF gibt es auf http://www.thorsten-willert.de

  • Deaken
    Beiträge
    29
    • 6. Dezember 2015 um 14:07
    • #6

    Bitte, bitte, bitte mit Zucker obendrauf

    [Blockierte Grafik: http://www.q-tarantino.de/pictures/originals/pulp02.jpg]

  1. Datenschutzerklärung
  2. Impressum
  3. Shoutbox-Archiv
Community-Software: WoltLab Suite™