Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 11661

How can I select an element in selenium if my browser opened a new tab after clicking on the last element?

$
0
0

As I clicked on the price of a sunscreen my browser opened a new tab then I wanted to add the item to the cart but it was not happening. It gives me org. open a.selenium.NoSuchElementException. How can I make my automated software click on it? The code I tried to add my item to the cart


Viewing all articles
Browse latest Browse all 11661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>