Webdriver Tutorial

Use Java Robot To Operate Download Popup Dialog In Selenium WebDriver

java.awt.Robot class is very useful when you need to control the mouse or keyboard to operate OS-based windows dialog such as Download popup, Print popup, etc. It can also be used to operate native OS GUI applications like Calculator, Notepad. Because selenium webdriver can not test OS-based window applications or popups directly, so java.awt.Robot can

Use Java Robot To Operate Download Popup Dialog In Selenium WebDriver Read More »

How To Use Java Robot To Upload File In Selenium Webdriver

Uploading files is a common task in web-based applications. It is not easy to implement in selenium WebDriver automation, because the upload file component will popup a select file dialog that can not be handled by the selenium WebDriver. But java.awt.Robot provide a method to interact with OS native window dialog, this article will show

How To Use Java Robot To Upload File In Selenium Webdriver Read More »

WebDriver Event Listener : Take Screenshot On Exception

When you execute selenium automation testing scripts, there are a lot of times that you want to do something when an event happened. For example: Take screenshots when an exception occurred. Monitor and track the web element status after some action takes place. Log data before or after an action. Log the navigation url to check

WebDriver Event Listener : Take Screenshot On Exception Read More »