
Hi @瑞峰 孟
Yes, now the temp profile is under C:\Program Files. I think that's defined in browser or browser driver's source code and we can't change it.
As a workaround, I suggest that you can define a test profile path and always use that profile for automation tests. For example, you can use code edge_options.add_argument("user-data-dir=C:\\Users\\username\\AppData\\Local\\Temp")
, it will create a new Default
profile under that path. You can always use that profile for automation tests. If you don't need that profile one day, you can also delete the profile folder manually.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Regards,
Yu Zhou