Hallo,
ich möchte unter Verwendung der FF.au3 auf einen Button im Firefox Browser klicken.
Normalerweise hat das immer mit _FFClick, selten einmal mit _FFFormSubmit funktioniert,
jedoch habe ich nun eine Seite mit dem folgenden Quellcode:
<div class="Question__answers" data-reactid=".29bw80fmkg0.3.$=1$gameOverlay.0.0.7.$=1$questionScene.0.0.1">
<a class="Answer" data-reactid=".29bw80fmkg0.3.$=1$gameOverlay.0.0.7.$=1$questionScene.0.0.1.$904737" href="#"></a>
<a class="Answer" data-reactid=".29bw80fmkg0.3.$=1$gameOverlay.0.0.7.$=1$questionScene.0.0.1.$904738" href="#"></a>
</div>
Ich möchte nun auf das Element in Zeile 2 klicken, doch folgende Versuche waren bereits erfolglos, d. h. ohne jeglichen Effekt:
1) _FFClick('Answer', 'class', 0)
2) _FFClick('Answer', 'class', 1)
3) _FFClick(_FFXPath('//*[@class="Answer"]', '', 9))
4) _FFClick(_FFXPath('//*[@class="Answer"]', '', 9), 'elements', 0)
5) _FFClick(_FFXPath('//*[@class="Answer"]', '', 9), 'elements', 0)
6) _FFClick(_FFXPath('//*[@class="Question__answers"]/a[1]/span', '', 9))
7) _FFClick(_FFXPath('//*[@class="Question__answers"]/a[1]/span', '', 0))
_FFClick(_FFXPath('//*[@class="Question__answers"]/a[1]', '', 9))
9) _FFClick(_FFXPath('//*[@class="Question__answers"]/a[1]', '', 0))
10) _FFFormSubmit(0, "index", "auto")
11) _FFFormSubmit(0, "index", "click")
Falls es hilft: _FFGetLength('forms') liefert mir den Wert 1, also eine Form auf der Seite.
Ich vermute es wird hier JavaScript verwendet!
Danke