sancarn / stdVBA

VBA Standard Library - A Collection of libraries to form a common standard layer for modern VBA applications.
MIT License
294 stars 58 forks source link

stdAcc initAccTree() #27

Closed sancarn closed 4 months ago

sancarn commented 3 years ago

It seems IE has some issues with creating the Accessibility tree of applications first time. In order to create the Accessibility tree we first need to access path 4.5.4.1.1:

Sub initAccTree()
  'When accessing the accessibility model of IE it only fully generates Acc after first read. This can cause
  'Other parts of the acc tree, which werent initially visible to be visible again. 
  'typically this can be rectified by accessing 4.5.4.1.1 
  On Error Resume Next
  Call me.FromPath("4.5.4.1.1")
End Sub
sancarn commented 4 months ago

With deprecation of IE, I'm going to close this, as I don't believe it should be required in Edge/Chrome.