How can I find hamburger menu button?

93 views
Skip to first unread message

Олег Пономаренко

unread,
Nov 29, 2016, 1:13:06 PM11/29/16
to Selenium Users

How can I find "hamburger menu" button?

I 've the part of source here:

lazy var drawerButton: UIBarButtonItem = UIBarButtonItem(image: R.image.hamburger(),
style: .plain,
target: self.revealViewController()!,
action: #selector(SWRevealViewController.revealToggle(_:)))

I tried these:

driver.findElement(By.xpath("//*[@name='drawerButton'")).click();
driver.findElement(By.xpath("//*[@name='hamburger'")).click();
driver.findElement(By.name("drawerButton")).click();
driver.findElement(By.name("hamburger")).click();

But it doesn't help me. Can you help me? 




Reply all
Reply to author
Forward
0 new messages