Jump to content

Heinzl

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Heinzl's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thank you for your sample code. Unfortunately, javascript is not an option in my case. So I try to slowly approach the ISimpleDomNode. According to https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Accessibility/AT-APIs/ImplementationFeatures/MSAA#ISimpleDOMNode this should be possible in Firefox. In your sample file ex30_ISimpleDom.au3, I found that you are doing quite the same thing for chrome. So I tried to create a very simple test, which looks like this: ; Test for Firefox Access #include "UIAWrappers.au3" #AutoIt3Wrapper_UseX64=Y ;Should be used for stuff like tagpoint having right struct etc. when running on a 64 bits os ; find Firefox Window ConsoleWrite("Find Firefox ... ") Local $oFF = _UIA_getFirstObjectOfElement($UIA_oDesktop, "class:=MozillaWindowClass", $treescope_children) If IsObj($oFF) Then ConsoleWrite("found" & @CRLF) Else _UIA_DumpThemAll($UIA_oDesktop, $treescope_children) EndIf ; find Google TAB ConsoleWrite("Find Document ... ") Local $oDoc = _UIA_getObjectByFindAll($oFF, "Title:=.*Google Search;controltype:=UIA_DocumentControlTypeId", $treescope_subtree) If IsObj($oDoc) Then ConsoleWrite("found" & @CRLF) Else _UIA_DumpThemAll($oFF, $treescope_subtree) EndIf ; convert to Accessible Local $oAccessible = ObjCreateInterface($oDoc, $sIID_IAccessible, $dtagIAccessible) If IsObj($oAccessible) Then ConsoleWrite("Converted to IAccessible" & @CRLF) else ConsoleWrite("Conversion failed" & @CRLF) EndIf I would expect to get an Instance of IAccessible, but I get the following output instead: Find Firefox ... found Find Document ... found Conversion failed Maybe this is because ObjCreateInterface expects a pointer not an object? Can you give any advice? Thanks in advance Heinz
  2. Thank you junkew and InnI for your assistance! I won't spend any more time on Windows 7 and will continue work with Windows 10. Now that I am able to find the content object of type UIA_DocumentControlTypeId, I have another question: Is there a way to "convert" this to something that is more similar to a DomTree (like ISimpleDom)? Or, in other words: How do I acces porperties like innerHTML or innerText? Thank you for any assistance
  3. Today, I had the chance to do some more testing with simplespy.au3: I used machine #1 with 64bit Windows 7 build 7601 and almost current Firefox 68.0 64bit I ran the same tests on machine #2 with 32bit Windows 7 build 7601 and current Firefox 68.0.1 32bit Same Tests were made on another machine #3 with 64bit Windows 10 1803 and current Firefox 68.0.1 32bit More details about my environment: All machines have German versions of Windows and Firefox. On the 64bit machines #1 and #3, I executed simplespy.au3 in both modes x86 and x64, using "Run Script (x64)" and "Run Script (x86)" During the tests, Firefox is already started when I run simplespy.au3 I have to confirm an UAC Dialog, before simplespy.au3 starts I have autoit version 3.3.14.5 installed on all machines How I did the tests: I can place my mouse over almost any Element of Firefox (tried toolbar, address bar, favourite bookmarks), press Ctrl+W and get information about that element in the simplespy window on any machine. If i place my mouse anywhere in the content area of the browser (where the web content is displayed) and press Ctrl+W there, simpplespy.au3 crashes on machines #1 and #2 (with the additional information as shown below). On machine #3, everything works as expected. Conclusion: Access to content area of firefox doesn't seem to be possible with windows 7, but works fine with windows 10 Do you have any idea what's going wrong with Windows 7? Appendix - Additional Error Information Machine #1, 32bit mode and Machine #2, 32bit mode Problemsignatur: Problemereignisname: APPCRASH Anwendungsname: AutoIt3.exe Anwendungsversion: 3.3.14.5 Anwendungszeitstempel: 5aaa71bf (different each time, of course) Fehlermodulname: uiautomationcore.dll Fehlermodulversion: 7.0.0.0 Fehlermodulzeitstempel: 56f58458 (different each time, of course) Ausnahmecode: c0000005 Ausnahmeoffset: 00053671 Betriebsystemversion: 6.1.7601.2.1.0.256.48 Gebietsschema-ID: 1031 Zusatzinformation 1: 0a9e Zusatzinformation 2: 0a9e372d3b4ad19135b953a78882e789 Zusatzinformation 3: 0a9e Zusatzinformation 4: 0a9e372d3b4ad19135b953a78882e789 Machine #1, 64bit mode Problemsignatur: Problemereignisname: APPCRASH Anwendungsname: AutoIt3_x64.exe Anwendungsversion: 3.3.14.5 Anwendungszeitstempel: 5aaa71d3 Fehlermodulname: uiautomationcore.dll Fehlermodulversion: 7.0.0.0 Fehlermodulzeitstempel: 56f58b9a Ausnahmecode: c0000005 Ausnahmeoffset: 000000000005bffe Betriebsystemversion: 6.1.7601.2.1.0.256.48 Gebietsschema-ID: 1031 Zusatzinformation 1: a04c Zusatzinformation 2: a04c4c7ad5cbb615489808b507a01638 Zusatzinformation 3: c91a Zusatzinformation 4: c91af45283a621aa3e02406f3227c8f3
  4. Did anybody recently try to run the Firefox automation example? After doing some modifications, I have been able to access tree elements like tabs and click to them, so basic things work. But I can't access the document itself, I always get ""Action 6 failed". Any Ideas? Thanks for any help. Heinz
×
×
  • Create New...