using this site, i can use
await tab.evaluate("document.querySelector("#input2")")
but on another site, trying to find any elements on the site results in
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.12_3.12.1520.0_x64__qbz5n2kfra8p0Libasynciobase_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "path", line 58, in main
test2=await page.evaluate("document.querySelector('#button-ID')")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:pathPython312site-packagesnodrivercoretab.py", line 672, in evaluate
remote_object, errors = await self.send(
^^^^^^^^^^^^^^^^^^^^^
TypeError: cannot unpack non-iterable NoneType object
note that the same command document.querySelector('#button-ID')
when executed in chrome console does not return null, or an error