Skip to content

Commit a11fa12

Browse files
committed
Black
1 parent 48f0a3c commit a11fa12

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/robotkernel/selectors.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ def get_selenium_id_selector_completions(needle, driver):
320320
needle = needle[3:]
321321
matches = []
322322
if needle:
323-
results = driver.find_elements("css selector",
324-
f'[id="{needle}"]'
323+
results = driver.find_elements(
324+
"css selector", f'[id="{needle}"]'
325325
) or driver.find_elements("css selector", f'[id*="{needle}"]')
326326
else:
327327
results = driver.find_elements("xpath", "//*[@id]")
@@ -335,8 +335,8 @@ def get_appium_id_selector_completions(needle, driver):
335335
needle = needle[3:]
336336
matches = []
337337
if needle:
338-
results = driver.find_elements("xpath",
339-
f"//*[" f'contains(@resource-id, "{needle}")' f"]"
338+
results = driver.find_elements(
339+
"xpath", f"//*[" f'contains(@resource-id, "{needle}")' f"]"
340340
)
341341
else:
342342
results = driver.find_elements("xpath", "//*[@resource-id]")
@@ -350,8 +350,8 @@ def get_selenium_name_selector_completions(needle, driver):
350350
needle = needle[5:]
351351
matches = []
352352
if needle:
353-
results = driver.find_elements("css selector",
354-
f'[name="{needle}"]'
353+
results = driver.find_elements(
354+
"css selector", f'[name="{needle}"]'
355355
) or driver.find_elements("css selector", f'[name*="{needle}"]')
356356
else:
357357
results = driver.find_elements("xpath", "//*[@name]")
@@ -483,8 +483,8 @@ def get_appium_xpath_selector_completions(needle, driver):
483483
needle = needle[6:]
484484
matches = []
485485
if IS_TEXT.match(needle):
486-
results = driver.find_elements("xpath",
487-
f"//*[" f'contains(@text, "{needle}")' f"]"
486+
results = driver.find_elements(
487+
"xpath", f"//*[" f'contains(@text, "{needle}")' f"]"
488488
)
489489
elif needle:
490490
results = driver.find_elements("xpath", needle)

0 commit comments

Comments
 (0)