I want to verify if a pagination link is enabled or not first. If it
is enabled then click on the link, else i don't want to click on the
link and skip the if condition in JAVA.

I am using selenium web-driver and TestNG.

Thanks,
Rishil Bhatt