A way to click on hidden elements
This question has been asked on stackoverflow also.
Is there a way to click on a hidden value. 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 would this be a likely addition to Protractor in the future and is there a way around this issue at present.
This is a limitation of the webdriver spec - clicking on hidden elements is not supported. See https://code.google.com/p/selenium/wiki/FrequentlyAskedQuestions#Q:_Why_is_it_not_possible_to_interact_with_hidden_elements?