Git Product home page Git Product logo

ffau3's People

Contributors

thwillert avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ffau3's Issues

Integrating updates from Danp2 FF.au3

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.

Updating FFClick to include Click by Text

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`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.