-1

while running the application, 2 new tabs open which has same functionalities.Using Page object model in selenium how to design a class for this. If single class is enough how to differentiate those 2 tabs

vijay
  • 1
  • 1

1 Answers1

0

The Selenium WebDriver has a WindowHandles property and a SwitchTo() method, which you can use to switch across the tabs. After switching, you can use the same class, probably even the same instance, to address your page objects.

Kim Homann
  • 3,042
  • 1
  • 17
  • 20