Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout #4

Open
ghost opened this issue Sep 25, 2022 · 1 comment
Open

Timeout #4

ghost opened this issue Sep 25, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 25, 2022

Hello,

it worked until step 5. I got this in my terminal:

(udiinformer) ljmmbp:udiinformer username$ python main.py
Traceback (most recent call last):
  File "/Users/username/udiinformer/udiinformer/main.py", line 70, in <module>
    main()
  File "/Users/username/udiinformer/udiinformer/main.py", line 47, in main
    page.click(
  File "/Users/username/udiinformer/lib/python3.10/site-packages/playwright/sync_api/_generated.py", line 6624, in click
    self._sync(
  File "/Users/username/udiinformer/lib/python3.10/site-packages/playwright/_impl/_sync_base.py", line 103, in _sync
    return task.result()
  File "/Users/username/udiinformer/lib/python3.10/site-packages/playwright/_impl/_page.py", line 577, in click
    return await self._main_frame.click(**locals_to_params(locals()))
  File "/Users/username/udiinformer/lib/python3.10/site-packages/playwright/_impl/_frame.py", line 393, in click
    await self._channel.send("click", locals_to_params(locals()))
  File "/Users/username/udiinformer/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 36, in send
    return await self.inner_send(method, params, False)
  File "/Users/username/udiinformer/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 54, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded.
=========================== logs ===========================
waiting for selector "#ctl00_BodyRegion_PageRegion_MainRegion_ApplicationOverview_applicationOverviewListView_ctrl0_btnBookAppointment"
============================================================
Note: use DEBUG=pw:api environment variable to capture Playwright logs.

If I inspect the "selfservice.udi.no" site, it looks like the structure of the website has changed. So I wanted to ask, if this script works.

Thanks a lot

@fralik
Copy link
Owner

fralik commented Sep 25, 2022

This is true. I think that UDI has changed it structure. In addition, most of the new applications are handled via a new front-end. Since I have a paid version of the app, it is fixed there. Python version is left more as a reference. You may of course contribute a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant