Closed lime-n closed 2 years ago
Find out a few that worked
You are trying camelCase
methods, which work on the node.js version of playwright. The Python version has been using snake_case
since v1.8.0a1
.
Supported coroutines are listed in the upstream page for the Page
class.
I have a few concerns with the number of instances available to page when using playwright integration with scrapy.
Perhaps I have not yet fully understood the integration (lack of documentation does no help); However, I have found that the following are not compatible:
I usually work a lot with fillings forms and clicking buttons that would redirect me to the next page. There does not seem to be a compatible instance to wait long enough until the page loads. I have tried
waitForSelector
, however this is not effective enough.Here's what I am working with:
The screenshot would show me still in the log-in page. I need to add a timer to wait until the page loads for the next page, I figured
waitForUrl
would work as the url changes after the log-in page butscrapy_playwright
does not accept it as an argument. Therefore, what can I use in place of this?