Hello All,
This is my first post in this forum and before that I would like to thank Tarun and appreciate him and all others for their contribution.
I am new to java programming and following these tutorials to learn selenium
I want to know how to free up the memory in selenium project so as to avoid 'Out of memory errors' in future.
for e.g.
This is my test where I have instantiated 3 classes.
There would be many instances in entire project. Do I need to use garbage collector for it. If Yes, how?
@Test(priority=2,dataProvider="Delete user account")
public void deleteUserAccount(String username,String password, String firstname1){
Registration UOG = new Registration (driver);
BrowseListOfUsers userlist = new BrowseListOfUsers(driver);
DeleteUser deleteuser = new DeleteUser(driver);
driver.get("
http://localhost:8080/");
UOG.clickDemoCourse();
UOG_login.userLogin(username, password);
UOG.navigateToUsersList();
userlist.deleteUser(firstname1);
deleteuser.clickContinue();
}
Thanks,
Abhishek