Skip to content

Commit 32fb7f1

Browse files
changed find_element by id in Salesforce.py and basepage objects
1 parent 44d21c3 commit 32fb7f1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cumulusci/robotframework/Salesforce.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ def _locate_element_by_label(self, browser, locator, tag, constraints):
913913
except NoSuchElementException:
914914
component_id = label_element.get_attribute("for")
915915
if component_id:
916-
component = browser.find_element_by_id(component_id)
916+
component = browser.find_element(By.ID, component_id)
917917
# else find an input or textarea in a sibling or descendant?
918918
finally:
919919
self.selenium.set_selenium_implicit_wait(orig_wait)

cumulusci/robotframework/pageobjects/BasePageObjects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def _get_form_element_for_label(self, label):
276276
try:
277277
label_element = root.find_element(By.XPATH, f'//label[text()="{label}"]')
278278
input_id = label_element.get_attribute("for")
279-
element = root.find_element_by_id(input_id)
279+
element = root.find_element(By.ID, input_id)
280280
return element
281281

282282
except NoSuchElementException:

0 commit comments

Comments
 (0)