File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 6464
6565
6666class AppiumLocatorConverter :
67- def convert (self , by , value ):
67+ """A custom locator converter in Appium.
68+
69+ Appium supports locators which are not defined in W3C WebDriver,
70+ so Appium Python client wants to keep the given locators
71+ to the Appium server as-is.
72+ """
73+
74+ def convert (self , by : str , value : str ) -> tuple [str , str ]:
6875 return (by , value )
6976
7077
@@ -222,6 +229,11 @@ def __init__( # noqa: PLR0913
222229 )
223230 client_config .remote_server_addr = command_executor
224231 command_executor = AppiumConnection (remote_server_addr = command_executor , client_config = client_config )
232+ elif isinstance (command_executor , AppiumConnection ) and strict_ssl is False :
233+ logger .warning (
234+ "Please set 'ignore_certificates' in the given 'appium.webdriver.appium_connection.AppiumConnection' or "
235+ "'selenium.webdriver.remote.client_config.ClientConfig' instead. Ignoring."
236+ )
225237
226238 super ().__init__ (
227239 command_executor = command_executor ,
You can’t perform that action at this time.
0 commit comments