I need to know how can I do assertion in Selenium WebDriver. My situation is I have one edit, but on screen, but that edit button is present on some certain criteria.
So I want to check that if that button is present. It should be clicked on and it should open another child window and should perform certain actions. If that edit button element is not present on the screen, it should check the next condition which is the log off button in my keyword framework.