Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.
I have to click a menu item and check whether the expected URL is loaded.
When I click the menu manually, it loads in the same page. But while automating the script using selenium2.
I used element.click();
But it opens in new tab