title: Trying to click a link to get a popup in selenium
body: <p><a href="https://i.stack.imgur.com/OnApg.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OnApg.jpg" alt="enter image description here" /></a>I'm trying to scrape a website, that has a link that produces a popup that I want to scrape. If I click on the product it would give me the information, but then I would have to do back() back() a million times if I get the popup I can scrape the info close the popup, and move to the next product.</p>
  <p><a href="https://i.stack.imgur.co" rel="nofollow noreferrer"><img src="https://i.stack.imgur.co" alt="This is a picture of the Quick Shop link I'm trying to get" /></a></p>
  <p><a href="https://i.stack.imgur.com/5WvVG.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5WvVG.jpg" alt="This is the picture of the popup" /></a>m/RlY2k.jpg</p>
  <p>These are just some of the things I've tried:
  quick = driver.find_element_by_xpath(&quot;/html/body/div<a href="https://i.stack.imgur.co" rel="nofollow noreferrer">2</a>/div<a href="https://i.stack.imgur.co" rel="nofollow noreferrer">2</a>/div/div<a href="https://i.stack.imgur.com/5WvVG.jpg" rel="nofollow noreferrer">3</a>/div<a href="https://i.stack.imgur.com/5WvVG.jpg" rel="nofollow noreferrer">3</a>/div[5]/ul<a href="https://i.stack.imgur.co" rel="nofollow noreferrer">2</a>/li<a href="https://i.stack.imgur.co" rel="nofollow noreferrer">2</a>/div&quot;)
  quick.click()</p>
  <pre><code> //*[@id=&quot;js_proList&quot;]/ul[1]/li[1]/div/div[1]/span
  
   //body[1]/div[1]/div[1]/div[1]/div[2]/div[2]/div[5]/ul[1]/li[1]/div[1]/div[1]/span[1]
  
   //span[contains(@xpath,'1')]
  </code></pre>
  <p>This the code.</p>
  <pre><code>&lt;div class=&quot;goods_img pr fast-btn-hover js_goodsHoverImg&quot; data-goods-id=&quot;475526308&quot; xpath=&quot;1&quot;&gt;  &lt;span data-logsss-const-value=&quot;&quot; data-href=&quot;/m-goods-a-fast-id-7684901.htm&quot; class=&quot;fast-buy js_fast_buy&quot;&gt;QUICK SHOP&lt;/span&gt;
  </code></pre>