UIAHandler._remoteOps.remoteTypes package

class UIAHandler._remoteOps.remoteTypes.RemoteBaseObject(rob: RemoteOperationBuilder, operandId: OperandId)

Bases: Operand, Generic[LocalTypeVar]

_IsTypeInstruction: Type[builder.InstructionBase]
LocalType: Type[LocalTypeVar] | None = None
_initialValue: LocalTypeVar | None = None
_executionResult: operation.ExecutionResult | None = None
_setExecutionResult(executionResult: ExecutionResult)
_generateDefaultInitialValue() LocalTypeVar
_generateInitInstructions() Iterable[InstructionBase]
_initOperand(initialValue: LocalTypeVar | None = None, const: bool = False)
classmethod createNew(rob: RemoteOperationBuilder, initialValue: LocalTypeVar | None = None, operandId: OperandId | None = None, const: bool = False) Self
classmethod ensureRemote(rob: RemoteOperationBuilder, obj: Self | LocalTypeVar) Self
property initialValue: LocalTypeVar
property isLocalValueAvailable: bool
property localValue: LocalTypeVar
set(other: Self | LocalTypeVar)
copy() Self
_doCompare(comparisonType: ComparisonType, other: Self | LocalTypeVar) RemoteBool
stringify() RemoteString
class UIAHandler._remoteOps.remoteTypes.RemoteVariant(rob: RemoteOperationBuilder, operandId: OperandId)

Bases: RemoteBaseObject

_generateInitInstructions() Iterable[InstructionBase]
_isType(RemoteClass: Type[RemoteBaseObject]) RemoteBool
isNull() RemoteBool
isBool() RemoteBool
isInt() RemoteBool
isUint() RemoteBool
isFloat() RemoteBool
isString() RemoteBool
isGuid() RemoteBool
isArray() RemoteBool
isElement() RemoteBool
_TV_asType = ~_TV_asType
asType(remoteClass: Type[_TV_asType]) _TV_asType
class UIAHandler._remoteOps.remoteTypes.RemoteNull(rob: RemoteOperationBuilder, operandId: OperandId)

Bases: RemoteBaseObject

_IsTypeInstruction

alias of IsNull

_generateInitInstructions() Iterable[InstructionBase]
class UIAHandler._remoteOps.remoteTypes.RemoteIntegral(rob: RemoteOperationBuilder, operandId: OperandId)

Bases: RemoteBaseObject[LocalTypeVar], Generic[LocalTypeVar]

_NewInstruction: Type[builder.InstructionBase]
_ctype: Type[_SimpleCData]
_generateInitInstructions() Iterable[InstructionBase]
class UIAHandler._remoteOps.remoteTypes.RemoteBool(rob: RemoteOperationBuilder, operandId: OperandId)

Bases: RemoteIntegral[bool]

_IsTypeInstruction

alias of IsBool

_NewInstruction

alias of NewBool

_ctype

alias of c_bool

LocalType

alias of bool

_defaultInitialValue = False
inverse() RemoteBool
class UIAHandler._remoteOps.remoteTypes.RemoteNumber(rob: RemoteOperationBuilder, operandId: OperandId)

Bases: RemoteIntegral[LocalTypeVar], Generic[LocalTypeVar]

class UIAHandler._remoteOps.remoteTypes.RemoteIntBase(rob: RemoteOperationBuilder, operandId: OperandId)

Bases: RemoteNumber[int]

class UIAHandler._remoteOps.remoteTypes.RemoteUint(rob: RemoteOperationBuilder, operandId: OperandId)

Bases: RemoteIntBase

_IsTypeInstruction

alias of IsUint

_NewInstruction

alias of NewUint

_ctype

alias of c_ulong

LocalType

alias of int

_defaultInitialValue = 0
class UIAHandler._remoteOps.remoteTypes.RemoteInt(rob: RemoteOperationBuilder, operandId: OperandId)

Bases: RemoteIntBase

_IsTypeInstruction

alias of IsInt

_NewInstruction

alias of NewInt

_ctype

alias of c_long

LocalType

alias of int

_defaultInitialValue = 0
class UIAHandler._remoteOps.remoteTypes.RemoteFloat(rob: RemoteOperationBuilder, operandId: OperandId)

Bases: RemoteNumber[float]

_IsTypeInstruction

alias of IsFloat

_NewInstruction

alias of NewFloat

_ctype

alias of c_double

LocalType

alias of float

_defaultInitialValue = 0.0
class UIAHandler._remoteOps.remoteTypes.RemoteString(rob: RemoteOperationBuilder, operandId: OperandId)

Bases: RemoteBaseObject[str]

_IsTypeInstruction

alias of IsString

LocalType

alias of str

_defaultInitialValue = ''
_generateInitInstructions() Iterable[InstructionBase]
_concat(other: Self | str) Self
set(other: Self | str)
copy() Self
class UIAHandler._remoteOps.remoteTypes.RemoteArray(rob: RemoteOperationBuilder, operandId: OperandId)

Bases: RemoteBaseObject

_LOCAL_COM_INTERFACES = [<class 'comtypes.gen._944DE083_8FB8_45CF_BCB7_C477ACB2F897_0_1_0.IUIAutomationElement'>, <class 'comtypes.gen._944DE083_8FB8_45CF_BCB7_C477ACB2F897_0_1_0.IUIAutomationTextRange'>]
_correctCOMPointers(*items: object) list
property localValue: list
_generateInitInstructions() Iterable[InstructionBase]
size() RemoteUint
append(value: RemoteBaseObject | int | float | str) None
remove(index: RemoteIntBase | int) None
class UIAHandler._remoteOps.remoteTypes.RemoteGuid(rob: RemoteOperationBuilder, operandId: OperandId)

Bases: RemoteBaseObject[GUID]

_IsTypeInstruction

alias of IsGuid

LocalType

alias of GUID

property _defaultInitialValue: GUID
_generateInitInstructions() Iterable[InstructionBase]
UIAHandler._remoteOps.remoteTypes.getRemoteTypeForLocalType(LocalType: Type[object]) Type[RemoteBaseObject]

Submodules

UIAHandler._remoteOps.remoteTypes.element module

class UIAHandler._remoteOps.remoteTypes.element.RemoteElement(rob: RemoteOperationBuilder, operandId: OperandId)

Bases: RemoteExtensionTarget[POINTER(IUIAutomationElement)]

Represents a remote UI Automation element. Allows for navigation and property retrieval.

_IsTypeInstruction

alias of IsElement

LocalType

alias of POINTER(IUIAutomationElement)

_initOperand(initialValue: None = None, const: bool = False)
property localValue: IUIAutomationElement
getPropertyValue(propertyId: RemoteIntEnum[PropertyId] | PropertyId, ignoreDefault: RemoteBool | bool = False) RemoteVariant
_navigate(navigationDirection: NavigationDirection) RemoteElement
getParentElement() RemoteElement
getFirstChildElement() RemoteElement
getLastChildElement() RemoteElement
getNextSiblingElement() RemoteElement
getPreviousSiblingElement() RemoteElement

UIAHandler._remoteOps.remoteTypes.extensionTarget module

class UIAHandler._remoteOps.remoteTypes.extensionTarget.RemoteExtensionTarget(rob: RemoteOperationBuilder, operandId: OperandId)

Bases: RemoteBaseObject[LocalTypeVar], Generic[LocalTypeVar]

Represents a remote object that supports UI Automation custom extensions. Including checking for the existence of extensions and calling extensions.

_generateInitInstructions() Iterable[InstructionBase]
isNull()
isExtensionSupported(extensionId: RemoteGuid | GUID) RemoteBool
callExtension(extensionId: RemoteGuid | GUID, *params: RemoteBaseObject | int | float | str) None

UIAHandler._remoteOps.remoteTypes.intEnum module

class UIAHandler._remoteOps.remoteTypes.intEnum.c_long_enum

Bases: c_long

_enumType: Type[IntEnum]
UIAHandler._remoteOps.remoteTypes.intEnum._makeCtypeIntEnum(enumType: Type[IntEnum]) Type[_SimpleCData]
UIAHandler._remoteOps.remoteTypes.intEnum._makeRemoteEnum(enumType: Type[IntEnum]) Type[RemoteInt]
class UIAHandler._remoteOps.remoteTypes.intEnum.RemoteIntEnum(rob: RemoteOperationBuilder, operandId: OperandId)

Bases: RemoteInt, Generic[_RemoteIntEnum_LocalTypeVar]

localType

alias of IntEnum

_enumType: _RemoteIntEnum_LocalTypeVar
_initOperand(initialValue: _RemoteIntEnum_LocalTypeVar, const: bool = False)
classmethod ensureRemote(rob: RemoteOperationBuilder, obj: RemoteIntEnum[_RemoteIntEnum_LocalTypeVar] | _RemoteIntEnum_LocalTypeVar) RemoteIntEnum[_RemoteIntEnum_LocalTypeVar]
set(other: Self | _RemoteIntEnum_LocalTypeVar)

UIAHandler._remoteOps.remoteTypes.textRange module

class UIAHandler._remoteOps.remoteTypes.textRange.RemoteTextRange(rob: RemoteOperationBuilder, operandId: OperandId)

Bases: RemoteExtensionTarget[POINTER(IUIAutomationTextRange)]

Represents a remote UI Automation text range.

LocalType

alias of POINTER(IUIAutomationTextRange)

_initOperand(initialValue: None = None, const: bool = False)
property localValue: IUIAutomationTextRange
clone() RemoteTextRange
getEnclosingElement() RemoteElement
getText(maxLength: RemoteInt | int) RemoteString
expandToEnclosingUnit(unit: RemoteIntEnum[TextUnit] | TextUnit)
moveEndpointByUnit(endpoint: RemoteIntEnum[TextPatternRangeEndpoint] | TextPatternRangeEndpoint, unit: RemoteIntEnum[TextUnit] | TextUnit, count: RemoteInt | int) RemoteInt
moveEndpointByRange(srcEndpoint: RemoteIntEnum[TextPatternRangeEndpoint] | TextPatternRangeEndpoint, otherRange: RemoteTextRange, otherEndpoint: RemoteIntEnum[TextPatternRangeEndpoint] | TextPatternRangeEndpoint)
getAttributeValue(attributeId: RemoteIntEnum[AttributeId] | AttributeId) RemoteVariant
compareEndpoints(thisEndpoint: RemoteIntEnum[TextPatternRangeEndpoint] | TextPatternRangeEndpoint, otherRange: RemoteTextRange, otherEndpoint: RemoteIntEnum[TextPatternRangeEndpoint] | TextPatternRangeEndpoint) RemoteInt
getLogicalAdapter(reverse: bool = False) RemoteTextRangeLogicalAdapter
class UIAHandler._remoteOps.remoteTypes.textRange._RemoteTextRangeEndpoint(rob: RemoteOperationBuilder, textRangeLA: RemoteTextRangeLogicalAdapter, isStart: bool)

Bases: _RemoteBase

property textRange: RemoteTextRange
property isReversed: bool
property endpoint: TextPatternRangeEndpoint
compareWith(other: _RemoteTextRangeEndpoint) RemoteInt
moveTo(other: _RemoteTextRangeEndpoint)
moveByUnit(unit: RemoteIntEnum[TextUnit] | TextUnit, count: RemoteInt | int) RemoteInt
class UIAHandler._remoteOps.remoteTypes.textRange.RemoteTextRangeLogicalAdapter(rob: RemoteOperationBuilder, textRange: RemoteTextRange, reverse: bool = False)

Bases: _RemoteBase

property textRange: RemoteTextRange
property isReversed: bool
property start: _RemoteTextRangeEndpoint
property end: _RemoteTextRangeEndpoint
clone()