Porting of selenium2library to java