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 »