@@ -45,6 +45,7 @@ def test_anything(self):
45
45
from seleniumbase .core import log_helper
46
46
from seleniumbase .core import tour_helper
47
47
from seleniumbase .fixtures import constants
48
+ from seleniumbase .fixtures import css_to_xpath
48
49
from seleniumbase .fixtures import js_utils
49
50
from seleniumbase .fixtures import page_actions
50
51
from seleniumbase .fixtures import page_utils
@@ -1429,8 +1430,8 @@ def __select_option(self, dropdown_selector, option,
1429
1430
timeout = settings .SMALL_TIMEOUT
1430
1431
if self .timeout_multiplier and timeout == settings .SMALL_TIMEOUT :
1431
1432
timeout = self .__get_new_timeout (timeout )
1432
- if page_utils . is_xpath_selector ( dropdown_selector ):
1433
- dropdown_by = By . XPATH
1433
+ dropdown_selector , dropdown_by = self . __recalculate_selector (
1434
+ dropdown_selector , dropdown_by )
1434
1435
self .wait_for_ready_state_complete ()
1435
1436
element = self .wait_for_element_present (
1436
1437
dropdown_selector , by = dropdown_by , timeout = timeout )
@@ -2984,6 +2985,9 @@ def get_google_auth_password(self, totp_key=None):
2984
2985
totp = pyotp .TOTP (totp_key )
2985
2986
return str (totp .now ())
2986
2987
2988
+ def convert_css_to_xpath (self , css ):
2989
+ return css_to_xpath .convert_css_to_xpath (css )
2990
+
2987
2991
def convert_xpath_to_css (self , xpath ):
2988
2992
return xpath_to_css .convert_xpath_to_css (xpath )
2989
2993
0 commit comments