open file with edge
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2020
07:28 AM
04-22-2020
07:28 AM
open file with edge
Hello to all,
I have a problem with the edge test.
when i try to make him open a file with edge the test dies. I am using, as suggested in the documentation, this statement: Window ("# 32770", "Open"). OpenFile ("C: \\ MyFile.txt"); do you have any alternative solution that can also work for edge?
Solved! Go to Solution.
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2020
03:52 PM
04-22-2020
03:52 PM
Could you give us the error message encountered ?
To select a file in open dialog in old Edge i use something like this:
let selectFiles = Sys.Browser("*").Window("#32770", "Open", 1);
if (selectFiles != null) {
selectFiles.Window("ComboBoxEx32", "", 1).Window("ComboBox", "", 1).Window("Edit", "", 1).SetText(FileToSelect);
if (selectFiles.FindChild('WndCaption', "&Open").Exists)
selectFiles.Window("Button", "&Open", 1).ClickButton();
}
But if you speak about the new Edge, didn't use it a lot but as it's a chromium app perhaps it has changed a bit.
Use TC spy to introspect the dialog and find correct class/name.
Un sourire et ça repart
