here findelement method is used four times. The number of those calls should be reduced