Spring Autowire Use @Component, @Repository, @Service and @Controller Annotations

Besides define Spring beans in a configuration file, Spring also provides some java annotation interface for you to make Spring bean declaration simple and easy. These interfaces are also called stereotype annotation. They are @Component, @Repository, @Service, and @Controller. If you want to reference such a bean, you just need to annotate that field with

Spring Autowire Use @Component, @Repository, @Service and @Controller Annotations Read More »

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 »