Skip to content

Commit 2de5c4d

Browse files
amrutharajashekarocefpaf
authored andcommitted
updated the test_geojson with latest find_element method
1 parent eaadc41 commit 2de5c4d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/selenium/test_geojson_selenium.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import folium
22
import folium.plugins
3+
from selenium.webdriver.common.by import By
34
from folium.utilities import temp_html_filepath
45

56

@@ -32,5 +33,5 @@ def test_geojson(driver):
3233
'.leaflet-control-layers-overlays > label:nth-of-type(2)'
3334
)
3435
assert control_label.text == 'geojson'
35-
control_input = control_label.find_element_by_css_selector('input')
36+
control_input = control_label.find_element(By.CSS_SELECTOR, value='input')
3637
assert control_input.get_attribute('checked') is None

0 commit comments

Comments
 (0)