Skip to content

Add get_parent() to various APIs (eg: The CDP API) #3507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mdmintz opened this issue Feb 12, 2025 · 1 comment · Fixed by #3508
Closed

Add get_parent() to various APIs (eg: The CDP API) #3507

mdmintz opened this issue Feb 12, 2025 · 1 comment · Fixed by #3508
Assignees
Labels
enhancement Making things better UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode

Comments

@mdmintz
Copy link
Member

mdmintz commented Feb 12, 2025

Add get_parent() to various APIs (eg: The CDP API)


For the CDP API, calling element.parent does not add in the SB CDP methods to the parent method received. So instead, I'll create a CDP_Element.get_parent() method to retrieve the parent element and add in the CDP API methods into there. The SB CDP API will also get it via sb.cdp.get_parent(element).

Also, I'll add get_parent() to the driver API and to the SB API. (Note that get_parent() won't be added to the WebElement API, which is separate, and exists within Selenium, rather than within SeleniumBase.)

@mdmintz mdmintz added enhancement Making things better UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode labels Feb 12, 2025
@mdmintz mdmintz self-assigned this Feb 12, 2025
@mdmintz
Copy link
Member Author

mdmintz commented Feb 12, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Making things better UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant