How to visit multiple urls using Selenium(Python 3)? Or ask user for input for a desired number of URLs? -
i trying crawl multiple webpages using single script. @ moment have individual scripts each url want visit. wondering if possible 1) single script take multiple pages , desired actions? 2)a script asks user url address , standard actions , keeps prompting more urls till user wishes finish.
do research "data driven testing" , "parameterized tests" selenium. you'll able have data source (csv file, inline definition, database, whatever) read standard actions. prompt user instead of having every site defined @ start in datasource, take away many of benefits of having scripted.
a basic python implementation of data driven selenium can seen here.
Comments
Post a Comment