I made a following PAD flow :
Press button on web page (to download a file, Browser automation)
Populate text field in window (full path of save file, "save file as" dialog, UI automation)
I'm starting the flow by launching new Chrome instance, and all actions worked well.
I succeeded in saveing the downloaded file.
But, if some other Chrome instance (A) exists before runnig the flow, "Populate text field in window" action fails.
The Chrome window (A) activated and PAD fails to find the text field.
How can I fix this probrem?
Power Automate Desktopで、Web上のダウンロードボタンを押し、ファイルを保存するフローを作りました。
ファイル保存ダイアログ上の操作には、UIオートメーションを使い、
保存するファイルのフルパスを指定したり、保存ボタンを押したりしています。
Chromeのウィンドウがひとつも無い状態でフローを実行すると、何の問題もなく成功しますが、
先にChromeが動いている状態でフローを実行すると、
ファイル保存ダイアログでファイル名を指定するタイミングで、先に起動していたChromeが前面に表示されてしまい、
PADはファイル保存ダイアログ上のUI要素を見つけられなくなるので、エラーになってしまいます。
エラーは「テキストボックスに書き込めません。(テキストボックスが見つかりません)」です。
フローで作成したChromeインスタンスか、ファイル保存ダイアログを前面に持ってくるなどして、
うまく動作するようにすることはできないでしょうか?
或いは他の解決法があるでしょうか?