Reputation: 2353
Using protractor, I would like to get a canvas which is in div. For example like this:
<div id="myId">
<canvas></canvas>
</div>
Unfortunately, the canvas can not have an id for some reasons. Therefore, I would like to know if it was possible to do something like that with protractor:
let myCanvas = element(by.css('#myId > canvas'));
Upvotes: 1
Views: 81