@Stef_99,
You will have to use WebDriver for this. Here is one of the finest tutorial for this.
Another one:
Thanks, Ashok