Can not identify button which inside the ShadowRoot in protractor.
I have tried using deepCss as follows,
this.startNowButton = element(by.deepCss('button[class="apply-now"]'));
But I am getting
NoSuchElementError: No element found using locator: By(css selector, * /deep/ button[class="apply-now"])
Is this the correct way to identify the elements inside the ShadowRoot for Protractor? Thanks
my HTML page is similar to as follows,
<div id="modal">
<div class="push-wrap">
<header id ="site-header">
<hmy-cms-header class="hydrated">
#shadow-root (open)
<header>
<div class=notification-banner> ... </div>
<div class="ca">
<button class="apply-now">"Apply"<span>now</span>