I'm using Selenium in Eclipse to automate the sending of commands to a website through JAVA files. On this site, I need to check dates. I did so to test:
element = driver.findElement(By.name("form:dtEmissao_input"));
element.sendKeys("01/04/2016");
element = driver.findElement(By.name("form:emissFim_input"));
element.sendKeys("12/04/2016");
However, I wanted him to always get the first and last day of the previous month. How can I do this? Need to import some library into my JAVA file?