sitespeed.io is an open-source tool for comprehensive web performance analysis, enabling you to test, monitor, and optimize your website’s speed using real browsers in various environments.
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"]
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"]