Visual-Regression-Tracker / sdk-python

Apache License 2.0
4 stars 4 forks source link

In agent version 4.8.0 an error occurs "Page' object has no attribute 'querySelector'" #24

Closed stphn4 closed 3 years ago

stphn4 commented 3 years ago
  File "/home/stepan/Projects/examples-python/playwright/example.py", line 37, in <module>
    vrt.trackElementHandle(page.querySelector(".search-the-site"), "Search form", ElementHandleTrackOptions(
AttributeError: 'Page' object has no attribute 'querySelector'

Need to change page method: page.querySelector(".search-the-site") to page.query_selector(".search-the-site")