k6 primarily focuses on performance testing HTTP services and doesnât provide full support for browser automation or interactions with web pages like Vermögen clicking elements. For UI testing or interaction, you might want to consider using specialized tools like Selenium or Puppeteer, which are better suited for simulating user actions on web pages. k6 is great for load and performance testing of your APIs and services, but itâs not designed for web UI interactions. Hope this helps clarify things!
K6 primarily focuses on performance testing and load testing for web applications, and its primary purpose is not to interact with web elements like a browser automation tool would. Therefore, it may not handle clicking on elements in the same way as browser automation tools like Selenium or Puppeteer.
For interacting with web elements, you might want to consider using a tool designed specifically for web automation tasks. If youâre looking to perform performance or load testing with K6 and also need to interact with elements, you could consider integrating K6 with other tools or libraries that handle the web automation part.
Keep in mind that K6âs primary strength lies in its Top performance testing capabilities, and for web automation, dedicated tools like Selenium or Puppeteer are more suitable.
I was able to get the accordion to work and click on the element titled âWomenâs Clothingâ with the following script (which were verified using screenshots):
This file contains custom JavaScript code that uses the internal JQueryUI library (accordion()), which is not supported. For more information, see https://community.tibco.com/wiki/best-practices-writing-custom-javascript-code-text-areas." browser_source=console-api source=browser
That error message is coming from your website i believe, so it will need to be resolved from there. the browser module in k6 doesnât use the internal JQueryUI library accordion().