You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My element(search bar) is inside shadow root, hence im unable to locate the xpath for it. As a workaround Im trying to click using css selector. Could you please help me with a command I can use to click search bar and add text using css selector?
Also any suggestions to click element which are inside shadow root and commands which could be used for sitespeed scripting?
Command used: await commands.click.bySelector('//example[@data-testid="nav-section-search-bar"]');
Error message : ERROR: Could not click using selector //example[@data-testid="nav-section-search-bar"]
The text was updated successfully, but these errors were encountered:
Your question
My element(search bar) is inside shadow root, hence im unable to locate the xpath for it. As a workaround Im trying to click using css selector. Could you please help me with a command I can use to click search bar and add text using css selector?
Also any suggestions to click element which are inside shadow root and commands which could be used for sitespeed scripting?
Command used: await commands.click.bySelector('//example[@data-testid="nav-section-search-bar"]');
Error message : ERROR: Could not click using selector //example[@data-testid="nav-section-search-bar"]
The text was updated successfully, but these errors were encountered: