How to Automate Click Toggle Button & Select Box in WebPage?

Most websites can be automatically clicked with StduioX, but the toggle button or select box below seems to be an error with StudioX’s click activity. Is it possible to do it in a better way or in other activities?
image

Please Let me Know, Thanks :slight_smile:

Hi @rosshild21

If this is the drop down selection you can use
The ‘Select Item’ activity to select elements in a drop-down menu.

Hope this helps :slightly_smiling_face:

Hello @rosshild21

  1. Try “Type Into” activity to simulate keyboard input, especially using the Spacebar key.
  2. Use “Set Web Attribute” to modify the state of the toggle button.
  3. Explore “Execute JavaScript” for direct interaction with web elements.
  4. Consider “Click Text” activity, indicating associated text.
  5. Use “Use Application/Browser” to leverage UI Automation features.
  6. Check for iFrames if the element is within one.

Thanks & Cheers!!!

Hi,

Use select item activity and

If select item activity is not working for you.

then Try to use the click activity.

first use click on the dropdown.

then click on the dropdown list with specified value.

Try with making the selector dynamic with passing aaname with your value.

whenever a dropdown is not working as expected we would analyze the html element structure within the Browser F12 Web Tools and/or UiExplorer

As a dropdown can be composed by different options

  • HTML Select / options
  • Text Field, Datalist, Javascript
  • Web Frameworks

we can check for the best matching option

A common pattern is also the following:

  • first click - expand the dropdown
  • second click - select the entry