Replies: 2 comments 4 replies
|
Once you do So instead of calling |
2 replies
|
I have tried these here: def find_buttons_with_review_ids(self, uniq_id):
"""
Finds all buttons with both data-review-id and data-href attributes.
"""
base_path = (
f"{BASE_XPATH}div/div[1]/div/div/div[2]//button"
)
elements = self.find_elements(base_path)
print(f"rev_elements {elements}")
reviewers = []
for element in elements:
review_id = element.get_attribute("data-review-id")
print(f"\nreview_id {review_id}")
if review_id:
review_divs = element.find_element("//div")
print(f"\nreview_divs {review_divs}")
review_spans = element.find_element("//span")
print(f"\nreview_spans {review_spans}")
return reviewersI get an error saying invalid argument: invalid locator Even using |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Here in this code
issue is here,
What is the way to first find an element and then inside the element find all elements? I checked it, and it does not work like this. I found a solution for using a new selector.
All reactions