Selecting mat-accordion and mat-expansion-panel-header in roboticframework

If documentation available for this please share.
I need to select the element, then i have to click the checkboxes like below.
This is bit confusing, I will try to elaborate.
need to select checkbox, inside this check box again have to select checkboxes
step 1: select first one custody sub accounts
step 2: it will display the checkbox options then have to select/unselect based on requirement
like this i have to select as per requirement.

All the check options inspect with mat-accordion

inspect for first check box which is in mat-expansion-panel

after selecting option

Testda1234_GMRdata code snippet

Thanks in advance !!

using Click element i am able select the value but I am reading data from csv file,

Hi,
can anyone help me with this.

Hi Lavanya,

The approach to clicking this element is basically the same as I’ve mentioned in your previous threads, I suggest you take the time to study the XPath Tutorial and learn how to write xpaths yourself.

As for the second part:

reading data from csv file

You didn’t mention how you are reading the data from a csv file, there are several ways you can do this in robot framework so this question is far too generic for anyone to know how to help you. perhaps show your robot test case in context to your question?

As a general guide:
When you read the data from a csv file, the data should be in several variables or in a data structure like a list or dictionary, either way this data variable can be used anywhere withing robot framework, in your case within a selector like an xpath, robot framework will see the variable in the xpath, convert the variable to it’s value and then pass the xpath to the keyword.

Hopefully that helps,

Dave.

1 Like