Hi @Descolada
How I can avoid the error: failed to find the browser!? I have a lot of this
Search found 57 matches
- 11 Feb 2024, 22:49
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 385
- Views: 59779
- 26 Jan 2024, 02:03
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 385
- Views: 59779
Re: UIA v2
@mora145 there isn't, but you can check the element for children with if Element.Children.Length and continue walking the tree if needed. Or if you know that you only need to skip "About this result" then perhaps el.WalkTree("-1", {Type:"Link", not:{Name:"About this result"}}) or el.WalkTree("-2", ...
- 26 Jan 2024, 00:35
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 385
- Views: 59779
Re: UIA v2
Descolada Hi man! You can help me with this? I have: try{ hello := pointer.FindElements({Name:"About this result", Type:"Button"}) } if(hello.Length > 0){ for el in hello { webPage := el.WalkTree("-1",{Type:"Link"}) Screenshot_77.png The hello element is the red box, I find it, but webPage, just re...
- 19 Jan 2024, 00:19
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 385
- Views: 59779
Re: UIA v2
@mora145 you are trying to Dump an array, which doesn't have that functionality. Instead you can loop through all the elements inside the array and show their contents: for el in pointer MsgBox el.DumpAll() @Spitzi if the table rows/cells are inspectable with UIAViewer then you could try looking at...
- 15 Jan 2024, 16:17
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 385
- Views: 59779
Re: UIA v2
@Descolada
Other problem here:
I obtain the elements, but when I will Dump it, produce a exception.
Other problem here:
I obtain the elements, but when I will Dump it, produce a exception.
- 15 Jan 2024, 11:46
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 385
- Views: 59779
Re: UIA v2
@mora145 you are doing everything correct, but Chrome is not (yet for another unknown reason). You can use finalElement := UIA.ContentViewWalker.GetLastChildElement(page) or finalElement := page[-1] as workarounds. I see. There are times when Chrome is illogical. Thanks Descolada and for staying tu...
- 15 Jan 2024, 11:01
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 385
- Views: 59779
Re: UIA v2
Hi, I'm trying obtain the last child element of this father element. The page is https://therealacademy.org/ Screenshot_72.png page := cUIA.GetCurrentDocumentElement() MsgBox page.DumpAll() finalElement := UIA.TreeWalkerTrue.GetLastChildElement(page) MsgBox finalElement.DumpAll() But I continue obta...
- 27 Dec 2023, 03:51
- Forum: Scripts and Functions (v1)
- Topic: UIAutomation with a focus on Chrome
- Replies: 554
- Views: 127004
- 24 Dec 2023, 03:49
- Forum: Scripts and Functions (v1)
- Topic: UIAutomation with a focus on Chrome
- Replies: 554
- Views: 127004
Re: UIAutomation with a focus on Chrome
Hi Descolada Im trying to find a ListItem using the FindByPath() function, but not work. image.png Here is my code: element := cUIA.FindFirstBy("Name='ds4' AND ControlType=Text") hola := element.FindByPath("-1", "ControlType=ListItem") Element pointer is finded correctly but the list not. The debugg...
- 08 Feb 2023, 19:12
- Forum: Ask for Help (v1)
- Topic: How to get the path of a file object? Topic is solved
- Replies: 8
- Views: 1340
Re: How to get the path of a file object? Topic is solved
Code: Select all
file := "C:\TestFolder\test.txt"
Loop, %file%
FilePath := A_LoopFileDir
MsgBox, % FilePath
I don't know if that's what you needed, but I'll leave it here, I was looking for a way to get the path without using regular expressions.
- 30 Jan 2023, 20:42
- Forum: Scripts and Functions (v1)
- Topic: UIAutomation with a focus on Chrome
- Replies: 554
- Views: 127004
Re: UIAutomation with a focus on Chrome
@mora145, I guess if FindByPath isn't working out at all, then you could use as a workaround hello.FindByPath("p.10") ? Or something like this might work as well: TextTW := cUIA.CreateTreeWalker("Type=Text") MsgBox, % TextTW.GetLastChildElement(hello.FindByPath("p")).Dump() I make that phoneButton:...
- 29 Jan 2023, 05:21
- Forum: Scripts and Functions (v1)
- Topic: UIAutomation with a focus on Chrome
- Replies: 554
- Views: 127004
Re: UIAutomation with a focus on Chrome
@mora145, if you Dump hello := chrome.FindFirstBy("Name="phoneButton) , do you get the correct output of Type: 50005 (Hyperlink) Name: "דברו איתי" Value: "tel:072-3301774" LocalizedControlType: "link" ? Ye, I obtain the correct. You could try hello.FindByPath("p").DumpAll() to verify that the text ...
- 29 Jan 2023, 04:55
- Forum: Scripts and Functions (v1)
- Topic: DeepL autotranlation in AutoHotKey
- Replies: 0
- Views: 872
DeepL autotranlation in AutoHotKey
Hello friends. Here I leave a small video about a script that I use to quickly translate text from English to any language you set in DeepL. Requeriments: Descolada Lib: https://github.com/Descolada/UIAutomation You will need create a folder in AutoHotKey system folder, named Lib, and you need place...
- 29 Jan 2023, 04:20
- Forum: Scripts and Functions (v1)
- Topic: UIAutomation with a focus on Chrome
- Replies: 554
- Views: 127004
Re: UIAutomation with a focus on Chrome
Hi Descolada, I have a problem getting an element. I spent all day trying to get the text from path 1.2.16, but I keep getting an empty element like this: Screenshot_29.jpg This is what my DumpAll returns when I get the window. 1.2.15 Type: 50005 (Hyperlink) Name: "דברו איתי" Value: "tel:072-3301774...
- 11 Jan 2023, 15:12
- Forum: Scripts and Functions (v1)
- Topic: UIAutomation with a focus on Chrome
- Replies: 554
- Views: 127004
Re: UIAutomation with a focus on Chrome
Excelentísimo! Gracias @Descolada. Prometo que haré una donación cuando reciba algún dinero. Gran trabajo con tu librería. Eres lo máximo explicando, gracias por tu tiempo.
- 11 Jan 2023, 09:57
- Forum: Scripts and Functions (v1)
- Topic: UIAutomation with a focus on Chrome
- Replies: 554
- Views: 127004
Re: UIAutomation with a focus on Chrome
Hi @Descolada
I am trying to use FindFirstWithOptions but I can't get it to work. Do you have an example in AHK that can help me?
I am trying to use FindFirstWithOptions but I can't get it to work. Do you have an example in AHK that can help me?
- 08 Dec 2022, 09:50
- Forum: Scripts and Functions (v1)
- Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
- Replies: 614
- Views: 137562
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
I am trying to do some scrolling in this window. I can't get it to scroll correctly but it's the screen behind me that moves. How can I do it? Screenshot_81.jpg Get all elements having innertext unfollow, now you can use element[x].focus it will automatically scroll to the element and focus that el...
- 07 Dec 2022, 18:26
- Forum: Scripts and Functions (v1)
- Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
- Replies: 614
- Views: 137562
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
I am trying to do some scrolling in this window. I can't get it to scroll correctly but it's the screen behind me that moves. How can I do it? Screenshot_81.jpg Get all elements having innertext unfollow, now you can use element[x].focus it will automatically scroll to the element and focus that el...
- 07 Dec 2022, 01:14
- Forum: Scripts and Functions (v1)
- Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
- Replies: 614
- Views: 137562
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Hello I am just starting to use Rufaydium. Thanks for keeping this library active and updated :) There are many videos showing your library and the documentation is excellent. So I guess that's why almost nobody requires support. I love the simplicity and that it can be used in the background, not l...
- 06 Dec 2022, 12:06
- Forum: Ask for Help (v1)
- Topic: Wait for HotKeys after of Input Dialog Box Topic is solved
- Replies: 2
- Views: 438