we have method
publicZohoPage gotoEnterUsernamePage() {
//TODOAuto-generated method stub
log("Going to username page");
loginlink.click();
returnnewEnterUsernamePage();
}
loginlink.click()-is it same as driver.findelement(byxpath()).click();
after clicking onloginlink.click() does the driver value changes?If the driver value changes how it is upated in the below code.
publicZohoBasePage()
{
System.out.println("Zoho base page con");
PageFactory.initElements(getCurrentDriver(),this);
getSession().setCurrentPage(this);
}
i tried to debug but still it was confusing to me,can you please clarify my doubt?