Hope someone can help/point me to a answer....
I am using Codeception for testing our website. All is well, except that I can not find a way to hover over a menu element to reveal the rest of the menu.
With watir & webdriver I was able to use
browser.div(:class->"menu-item-1").hover
I did find moveMouseOver
, but it does not seem to work. I've tried
moveMouseOver('//div/div/div/div/ul/li[2]/a')
and
moveMouseOver('.menu-item-1')
This is working for me with Codeception version 2.0.9 (to test for the appearance of Pin It buttons on image hover on a WordPress blog post):
$I->amOnPage( '/blog/post-1/' );
$I->moveMouseOver( '.entry-content img' );
$I->seeElement( 'a[title="Pin it!"]' );
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With