Storing selenium driver pages when run test to improve performance

73 Views Asked by At

I was using an internal API to get the data from a website and I stored this requests using a VCR(cassette), but this API is no longer available.

Therefore, I'm using Selenium to handle pages and scrap the data that I need, but, to improve the performance, I would to store the pages that the webdriver travel, such as I was doing with simple requests, I mean, store this pages(such as requests) in the cassette VCR or something like it.

I think to download some page that the crawler travel and inject it in driver when run the unitttests, but maybe it's possible to configure the VCR to do something like it(and it's more simple).

It's possible to do it?

0

There are 0 best solutions below