thwillert / ffau3 Goto Github PK
View Code? Open in Web Editor NEWAutoIt UDF für FireFox < V57
License: Apache License 2.0
AutoIt UDF für FireFox < V57
License: Apache License 2.0
https://github.com/Danp2/AutoIT_FF_Automation/blob/master/FF.au3
I came across this library. Some updates made here:
V0.6.0.1b-15 (by Danp2)
- Fixed: Restored declaration of return variable in _FFCmd
- Fixed: SelectWin check of individual tabs by Title
V0.6.0.1b-14 (by Danp2)
- Changed: _FFWindowOpen to allow private browsing
- Changed: _FFWindowGetHandle to improve functionality
- Fixed: _FFTableWriteToArray
- Fixed: __FFStartProcess
- Fixed: __FFWaitForRepl
Can they be included in your official au3? Thank you.
Could this be implemented in the library? Thanks.
`Func _FFClick($sElement, $sMode = "elements", $iIndex = 0, $bLoadWait = True)
Local Const $sFuncName = "_FFClick"
If Not IsInt($iIndex) Then
SetError(__FFError($sFuncName, $_FF_ERROR_InvalidDataType, "(int) $iIndex: " & $iIndex))
Return 0
EndIf
If $sMode = Default Then $sMode = "elements"
If $iIndex = Default Then $iIndex = 0
Switch StringLower($sMode)
Case "elements"
If StringLeft($sElement, 7) = "OBJECT|" Then $sElement = StringMid($sElement, 8)
Case "id"
$sElement = ".getElementById('" & $sElement & "')"
Case "name"
$sElement = ".getElementsByName('" & $sElement & "')[" & $iIndex & "]"
Case "class"
$sElement = ".getElementsByClassName('" & $sElement & "')[" & $iIndex & "]"
Case "tag"
$sElement = ".getElementsByTagName('" & $sElement & "')[" & $iIndex & "]"
Case "selector"
$sElement = ".querySelectorAll('" & $sElement & "')[" & $iIndex & "]"
Case "text"
$sElement = ".evaluate(""//*[contains(text(), '" & $sElement & "')]"", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;"
Case Else
SetError(__FFError($sFuncName, $_FF_ERROR_InvalidValue, "(elements|id|name|class|tag) $sMode: " & $sMode))
Return 0
EndSwitch
If StringLeft($sElement, 1) = "." Then $sElement = "FFau3.WCD" & $sElement
Local $RetVal = _FFCmd("FFau3.simulateEvent(" & $sElement & ",'MouseEvents','click');")
If Not @error And $RetVal <> "_FFCmd_Err" And $RetVal = 1 Then
Sleep(25)
If $bLoadWait Then Return _FFLoadWait()
__FFSetTopDocument()
Return 1
Else
SetError(__FFError($sFuncName, $_FF_ERROR_NoMatch, "$sElement: " & $sElement))
Return 0
EndIf
EndFunc ;==>_FFClick`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.