Skip to content

Conversation

@drammock
Copy link
Member

@drammock drammock commented Nov 26, 2024

wait = WebDriverWait(driver, 20)
wait.until(lambda d: d.find_element(by=By.ID, value="contributor-avatars"))
body = driver.find_element(by=By.TAG_NAME, value="body").get_attribute(
body = driver.find_element(by=By.TAG_NAME, value="body").get_dom_attribute(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this actually isn't correct. When I used it it returned None locally at least. So I went with get_property in https://github.com/mne-tools/mne-python/pull/12988/files#diff-e37d44d56ea2e365f274d4ef509351df9bc6a94674d1617972f63063484012ddR37 / #12988 (comment)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... but maybe I did it wrong, I didn't look at the output yet...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah OK. I was just going by the deprecation message and hoping it would work, planning to follow-up if it didn't. But if you're already addressing elsewhere I'll close this.

@drammock drammock closed this Nov 26, 2024
@drammock drammock deleted the fix-selenium branch November 26, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants