<div class="apiRequestDisplay ng-scope">
<pre class="ng-binding">GET</pre>
<pre class="ng-binding">v1/securityprofiles/{securityProfileID} </pre>
</div>
I am trying to target the specific text within
v1/securityprofiles/{securityProfileID}
. Upon inspecting the element on the webpage, I extracted the HTML at the top. It appears that there is no explicit ng-bind
attribute attached to the text, which struck me as odd.
To confirm the binding, I utilized the inspect Angular Scope (a Firefox add-on) and found the binding to be associated with docsEndpoint.Endpoint.HttpVerb
. However, when I attempted to use this in Protractor syntax:
var route1 = element(by.binding('docsEndpoint.Endpoint.UriTemplate'));
expect(route1).toBe('v1/securityprofiles/{securityProfileID}');
Nothing happened when I ran the code. What could be missing from my approach?
Although I could resort to selecting it using CSS selectors, I am keen to understand why the current method is not yielding results.