In my current project, I am utilizing protractor and BDD methodology. One of the tasks at hand involves verifying that the text displayed on a website's body is accurate. This text is dynamic and depends on the selections made in three dropdown boxes.
To accomplish this, I plan to retrieve the text from the website using getText() and compare it with an expected value. The challenge lies in determining this expected text based on the combination of choices made in the dropdown boxes and the specific section of the website being viewed. As a solution, I believe creating a 4D array is necessary.
My question now is how do I declare such an array and assign the appropriate expected texts?
An example structure I have in mind is:
template[0][2][1][0]='this is the expected text';