Add extension command for finding anonymous nodes #203

Merged
merged 1 commit into from Aug 31, 2016

Projects

None yet

2 participants

@andreastt
Member
andreastt commented Aug 30, 2016 edited

XBL has the concept of anonymous nodes that are not returned by the usual
WebDriver element-finding methods. However there are two Gecko-specific
methods of finding them; either by getting all the anonymous children of
a reference element, or getting a single anonymous child of a reference
element with specified attribute values.

This commit adds two endpoints corresponding to those methods:

/session/{sessionId}/moz/xbl/{elementId}/anonymous_children

to return all anonymous children, and

/session/{sessionId}/moz/xbl/{elementId}/anonymous_by_attribute

to return an anonymous element with the given attribute value, provided
as a body of the form:

{
    "name": <attribute name>,
    "value": <attribute value>
}

This change is Reviewable

@jgraham @andreastt jgraham add extension command for finding anonymous nodes
XBL has the concept of anonymous nodes that are not returned by the usual
WebDriver element-finding methods. However there are two Gecko-specific
methods of finding them; either by getting all the anonymous children of
a reference element, or getting a single anonymous child of a reference
element with specified attribute values.

This commit adds two endpoints corresponding to those methods:

	/session/{sessionId}/moz/xbl/{elementId}/anonymous_children

to return all anonymous children, and

	/session/{sessionId}/moz/xbl/{elementId}/anonymous_by_attribute

to return an anonymous element with the given attribute value, provided
as a body of the form:

	{
		"name": <attribute name>,
		"value": <attribute value>
	}
ebfcd17
@andreastt
Member

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.


Comments from Reviewable

@jgraham jgraham merged commit e2a6c30 into master Aug 31, 2016

1 of 3 checks passed

continuous-integration/travis-ci/pr The Travis CI build failed
Details
continuous-integration/travis-ci/push The Travis CI build failed
Details
code-review/reviewable 1 file reviewed
Details
@jgraham jgraham deleted the xbl_anonymous branch Aug 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment