I wrote an automation test in selenium java that detects if the page is redirecting the automation detects if a new page is opened, the page redirects to other page, a new tab is opened and if an alert window is opened Now to the problem.
I know the download process may differ in each browser, I need it to work mainly on chrome Thanks. Avidan Avidan 1 1 gold badge 1 1 silver badge 6 6 bronze badges. Try this to check if downloaded file is in destination directory stackoverflow. Add a comment. Active Oldest Votes. Fab Fab 91 1 1 silver badge 2 2 bronze badges.
I'll be glad to know if someone knows a way to find the trigger for the download. I am handling a similar condition in my automation. Step 3: check the file existence in the downloaded folder. User42 1 1 gold badge 19 19 silver badges 26 26 bronze badges. Athar Athar 21 3 3 bronze badges. Change Language. Related Articles. Flow Control. OOP Concepts.
Exception Handling. File Handling. Can anyone support what will be issue in this case. Skip to main content. Selenium Easy. Free selenium tutorials for beginners and experts. File; import java. FileFilter; import java. FileSystems; import java. Path; import java. Paths; import java. StandardWatchEventKinds; import java. WatchEvent; import java. Must Learn Expand child menu Expand.
Big Data Expand child menu Expand. Live Project Expand child menu Expand. AI Expand child menu Expand. Toggle Menu Close. Search for: Search. Viewed 8k times. Dave Dave 11 11 silver badges 20 20 bronze badges. Add a comment. Active Oldest Votes. Anton Angelov Anton Angelov 1, 12 12 silver badges 16 16 bronze badges.
While this may be a great answer, I would recommend providing more information on how and why this is a workable solution so that others can more easily understand and use this answer.
As stated in the question, using File. As stated in the question and my responses to other answers, using File. Sign up or log in Sign up using Google.
0コメント