Friday, 23 August 2013

A way of clicking on hidden elements in protractor end to end tests

A way of clicking on hidden elements in protractor end to end tests

Is there a way to click on a hidden value in a sub menu. I would like to
be able to do something like
driver.findElement(protractor.By.xpath('/html/body/div/div/a')).mouseover.then(function()
{
ptor.findElement(protractor.By.className('name').getText().then(function(result)
{
expect(result).toBe('Me');
});
});
when the menu item is not visible, or are we limited with this at the
moment. If this is not possible is there a way around this issue at
present.

No comments:

Post a Comment