Select last items of secondary navigation using acceptance test.

Select last items of secondary navigation using acceptance test.

by Daniele Cordella -
Number of replies: 2
Picture of Core developers Picture of Particularly helpful Moodlers Picture of 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.
Average of ratings: -
In reply to Daniele Cordella

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

by Benjamin Ellis -
Picture of Particularly helpful Moodlers
Hi,

You might have to expand the secondary menu - 'click on "more"' before that step.
Average of ratings: Useful (2)
In reply to Benjamin Ellis

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

by Daniele Cordella -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
S U P E R
It works fine!!!

Thanks, thanks, thanks!