The API of Selenium Web Drivers is a python binding. For instance, you can access conveniently the Web drivers of API of Selenium and enhance the power of Selenium such as Chrome, Firefox, PhantomJS, etc.
Tip No 1: No loading of images while crawling websites
Talking about the scripts that are automated means you run it thousands of times in each second. Most modern websites feature a lot of images. With the loading of page, selenium loads elements including the images.
Hence, even if there is less or no interaction with the images as you test the functionalities of the website, Selenium does load them. The best is there are ways about loading pages in Selenium without loading the images and the codes are with Chromedriver and phantomjs webdriver.
Tip No: 2 Use Disk Cache to Scrape Websites
Catching assets leads to speedy page loads. In the web browser, catching the disk reduces the time of page loading. Taking the benefit of this, you can set the configuration even before the web driver Selenium initialization. This helps in storing the website assets such as js, Css, to load faster in the disk storage. Thus, you load for the same website multiple pages.
Tip No: 4 Scrolling items down using Select
Select element using various options and locate the select using driver. Filter each and find appropriate option. Make it visible and the selenium has Select class helping to do the task in an easier way.