Skip to content

Commit 2ecab3e

Browse files
authored
Merge pull request #1626 from amrutha1098/1625_fix_test_geojson
test_geojson test does not pass on v0.13.0 tag because of the usage of removed Selenium method #1625
2 parents eaadc41 + 2de5c4d commit 2ecab3e

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)