plotly / dash

Data Apps & Dashboards for Python. No JavaScript Required.
https://plotly.com/dash
MIT License
21.5k stars 2.07k forks source link

Change selenium version to avoid deprecation warnings #2964

Open AugustoMagalhaes opened 2 months ago

AugustoMagalhaes commented 2 months ago

Some tools depending on Dash have been facing the same deprecation warning from issue #2590, which can be solved by modifying the selenium upper range version to 4.6.1, as found in https://stackoverflow.com/questions/75382508/deprecationwarning-httpresponse-getheader-is-deprecated-and-will-be-removed-i. I've tested the change in python versions 3.8.x, 3.9.x, 3.10.x, 3.11.x and 3.12.x and no problem has been found.

Contributor Checklist

T4rk1n commented 2 months ago

There is a few failures that are related to our tests rather than the dash[testing] api. Here we have a removal: AttributeError: 'WebElement' object has no attribute 'find_element_by_tag_name' for this test: - tests/integration/callbacks/test_multiple_callbacks.py:585 test_cbmt013_chained_callback_should_be_blocked that needs to be changed. test_duo001_wait_for_text_error and test_duo002_wait_for_text_value test the testing api, probably needs to be adapted too. For the failures in dcc tests, I think it's the dash_duo methods that is failing and may need to be fixed: click_at_coord_fractions

AugustoMagalhaes commented 2 months ago

There is a few failures that are related to our tests rather than the dash[testing] api. Here we have a removal: AttributeError: 'WebElement' object has no attribute 'find_element_by_tag_name' for this test: - tests/integration/callbacks/test_multiple_callbacks.py:585 test_cbmt013_chained_callback_should_be_blocked that needs to be changed. test_duo001_wait_for_text_error and test_duo002_wait_for_text_value test the testing api, probably needs to be adapted too. For the failures in dcc tests, I think it's the dash_duo methods that is failing and may need to be fixed: click_at_coord_fractions

Thanks for the feedback, T4rk1n. So just to confirm: I should work on the dash_duo methods for dcc failing tests or should I also work on fixing the other mentioned ones?

T4rk1n commented 2 months ago

So just to confirm: I should work on the dash_duo methods for dcc failing tests or should I also work on fixing the other mentioned ones?

Yes they both need fixing.