I am stuck in a problem and searched a couple of days. I am testing a website using selenium in python, I want to check the working of "About Us" button. In that website, clicking "About US" will scroll the page smoothly and take you to that "About US" section. Now I want to confirm with code, that did that clicking took me to the write section or not?
The first logic came in my mind was to check that either the main division of "About US" section is in viewport after clicking the button? But I don't know how to check it. I have gone through the documentation and found is_displayed() method but that is used to see is the item is visible or not (like its opacity etc) Kindly help me. Regards