Select last items of secondary navigation using acceptance test.

Select last items of secondary navigation using acceptance test.

door Daniele Cordella -
Aantal antwoorden: 2
Foto van Core developers Foto van Particularly helpful Moodlers Foto van Plugin developers
Hello moodlers.
Writing an acceptance test for my surveypro plugin (https://github.com/kordan/moodle-mod_surveypro)
I tried to select the last item of its "secondary navigation".
In surveypro the last item of the secondary navigation is inside the "More" menu (the last visible item of the secondary navigation).
Using:

And I select "Surveypro" from secondary navigation 
all is fine because "Surveypro" item is the first one and it is always visible,
but trying to select the last item (hidden in the "More" menu) I get ... xpath node is not visible and it should be visible (Behat\Mink\Exception\ExpectationException)

Is there a way to selet it using "standard" core methods or I am supposed to find a workaround?

As usual, thanks in advance.
Gemiddelde van de beoordelingen:  -
Als antwoord op Daniele Cordella

Re: Select last items of secondary navigation using acceptance test.

door Benjamin Ellis -
Foto van Particularly helpful Moodlers
Hi,

You might have to expand the secondary menu - 'click on "more"' before that step.
Gemiddelde van de beoordelingen: Useful (2)