Similar to generate_referral(), but can do multiple loops. If a selector is given, clicks that on the destination_page, which can prevent an artificial rise in website bounce-rate.
(
self, start_page, destination_page, loops=1, selector=None
)
| 10305 | time.sleep(0.15) |
| 10306 | |
| 10307 | def generate_traffic( |
| 10308 | self, start_page, destination_page, loops=1, selector=None |
| 10309 | ): |
| 10310 | """Similar to generate_referral(), but can do multiple loops. |
| 10311 | If a selector is given, clicks that on the destination_page, |
| 10312 | which can prevent an artificial rise in website bounce-rate.""" |
| 10313 | self.__check_scope() |
| 10314 | for loop in range(loops): |
| 10315 | self.generate_referral( |
| 10316 | start_page, destination_page, selector=selector |
| 10317 | ) |
| 10318 | time.sleep(0.05) |
| 10319 | |
| 10320 | def generate_referral_chain(self, pages): |
| 10321 | """Use this method to chain the action of creating button links on |
nothing calls this directly
no test coverage detected