Selenium Java - Page Object Model
Identify the error in this test class snippet:
public class ProfileTest {
ProfilePage profilePage;
@BeforeMethod
public void setup() {
profilePage = new ProfilePage();
}
@Test
public void testUpdateProfile() {
profilePage.updateProfile("New Name");
}
}