Closed cjamesanderson closed 6 months ago
Seems to be working correctly for me with PLAYWRIGHT_PROCESS_REQUEST_HEADERS=None
, i.e. giving complete control over headers processing to Playwright. The default behavior is to somehow emulate how Scrapy handles headers, but it doesn't work for all cases.
@elacuesta that was it. thank you!
Glad you got it working, closing the issue now.
Running the following playwright test works as expected and passes:
Two drop-down selectors are changed, the submit button is clicked, and the correct results are verified after loading.
However, running the identical code in a scrapy spider with scrapy-playwright results in a pause after the form is submitted, and then an apparent page reload returning the page to its original state instead of loading results. The script then hangs waiting for the "#ListViewAsm_ctrl0_Label1" element. Adding error handling with screenshots confirms that the page has been reloaded.