Selenium Automation Testing - Interview Q&A
#Selenium #Automation #QA #Interview
1Q. How to get list of links from webpage, navigate to each link and take snapshot and store in folder?
Steps to implement the logic
Step1 : Open the browser and navigate to site url
Step2 : get the list of links properties (anchor tag name or href for all elements in the web page)
Step3 : Iterate from the list of links using forloop
Step4 : Navigate to each and every link using navigate.to() method and wait the method till the page is loaded.
Step 5: Take Snapshot for the page.