I am finding the best solution to Clear Browsing data of chrome browser. Currently, I do that as follow:
Use Open Browser to open a web page in chrome.
Use Send Hotkey (Ctrl-Shift-Del) to go to Clear browsing data page.
Use Send Hotkey (enter) to confirm the deleting browsing data.
Everything seems to be ok until this point.
But the problem is: I don’t know when the deleting is complete.
My current solution is using delay activity to wait until it is finished. But I don’t think that is a good solution.
Please help me if you have any better solution for this problem.
I just proposed your solution to my manager, but he rejects it. Because image activities is affected by the screen resolution.
Now, I gonna use “inject js script” to check whether the dialog exist or not from HTML source page?
What do you think about that solution?
yep you can go ahead with js .
You could have used element if not image.
There would be no issue with element attributes . On Element Vanish activity.
However UiPath unable to detect the “Clear browsing data” window.
It’s detecting entire chrome as one window and selector as follows <html app='chrome.exe' /> @ovi
I tried to use uipath to detect the “Clear browsing data” window before, and found that It can not do that. So I think wait element vanish activity won’t work in this case.
I will try to use “Inject js script” to detect the existing of “Clear browsing data” window.
I will let you know if it work.
I really appreciate your help.