Skip to content

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

Closed
@mdmintz

Description

@mdmintz

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.)

Metadata

Metadata

Assignees

Labels

UC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModeenhancementMaking things better

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions