title: How do I programmatically click a button on this page when .click() does not work?
body: <p>Actually, I am working on an extension which help to buy product from flipkart during flash sale. On teh product page I can't click on "Buy Now" button with the help of JavaScript its show me <code>undefined</code> this is the code of Buy Now button:</p>
  
  <pre><code>&lt;form&gt;&lt;button class="_2AkmmA _2Npkh4 _2kuvG8 _7UHT_c" type="button"&gt;&lt;span class="_279WdV"&gt;&lt;/span&gt; &lt;!-- --&gt;BUY NOW&lt;/button&gt;&lt;/form&gt;
  </code></pre>
  
  <p><a href="https://www.flipkart.com/espoir-es2615-day-date-functioning-high-quality-watch-men/p/itmf7vvspssz5vqz?pid=WATF7VKVBHSS7V5D&amp;lid=LSTWATF7VKVBHSS7V5DTYTUOT&amp;marketplace=FLIPKART&amp;srno=b_1_1&amp;otracker=hp_omu_Deals%2Bof%2Bthe%2BDay_1_Min.60%2525%2B%252B%2BExtra10%2525Off_NFJ7P9838BD1_0&amp;fm=neo%2Fmerchandising&amp;iid=5d4a093a-36c3-482a-a804-f90907c3b096.WATF7VKVBHSS7V5D.SEARCH&amp;ppt=StoreBrowse&amp;ppn=Store&amp;ssid=ci4ysiaggw0000001544683181532" rel="nofollow noreferrer">The Button is in this page</a></p>
  
  <p>I am using the code to click this button in my JavaScript file</p>
  
  <pre><code>$("._2AkmmA._2Npkh4._2kuvG8._7UHT_c").click();
  </code></pre>
  
  <p>However, even when I go to <a href="https://www.flipkart.com/espoir-es2615-day-date-functioning-high-quality-watch-men/p/itmf7vvspssz5vqz?pid=WATF7VKVBHSS7V5D&amp;lid=LSTWATF7VKVBHSS7V5DTYTUOT&amp;marketplace=FLIPKART&amp;srno=b_1_1&amp;otracker=hp_omu_Deals%2Bof%2Bthe%2BDay_1_Min.60%2525%2B%252B%2BExtra10%2525Off_NFJ7P9838BD1_0&amp;fm=neo%2Fmerchandising&amp;iid=5d4a093a-36c3-482a-a804-f90907c3b096.WATF7VKVBHSS7V5D.SEARCH&amp;ppt=StoreBrowse&amp;ppn=Store&amp;ssid=ci4ysiaggw0000001544683181532" rel="nofollow noreferrer">the page on the site</a> and, in the console, execute</p>
  
  <pre><code>$("._2AkmmA._2Npkh4._2kuvG8._7UHT_c").click();
  </code></pre>
  
  <p>The console shows <code>undefined</code> and does not start the "Buy Now" process that is started by manually using the mouse to click on the "Buy Now" button. In the console, executing</p>
  
  <pre><code>$("._2AkmmA._2Npkh4._2kuvG8._7UHT_c");
  </code></pre>
  
  <p>Shows:</p>
  
  <pre><code>&lt;button class="_2AkmmA _2Npkh4 _2kuvG8 _7UHT_c" type="button"&gt;&lt;span class="_279WdV"&gt;&lt;/span&gt; &lt;!-- --&gt;BUY NOW&lt;/button&gt;
  </code></pre>
  
  <p>which is the correct button that I desire to programmatically click. Note that even though I used <code>$()</code>, what is returned is <em>not</em> a jQuery Object.</p>
  
  <p>If I click on that button manually, I'm shown the dialog for "Buy Now". You can go to <a href="https://www.flipkart.com/espoir-es2615-day-date-functioning-high-quality-watch-men/p/itmf7vvspssz5vqz?pid=WATF7VKVBHSS7V5D&amp;lid=LSTWATF7VKVBHSS7V5DTYTUOT&amp;marketplace=FLIPKART&amp;srno=b_1_1&amp;otracker=hp_omu_Deals%2Bof%2Bthe%2BDay_1_Min.60%2525%2B%252B%2BExtra10%2525Off_NFJ7P9838BD1_0&amp;fm=neo%2Fmerchandising&amp;iid=5d4a093a-36c3-482a-a804-f90907c3b096.WATF7VKVBHSS7V5D.SEARCH&amp;ppt=StoreBrowse&amp;ppn=Store&amp;ssid=ci4ysiaggw0000001544683181532" rel="nofollow noreferrer">this page</a> and try it yourself.</p>
  
  <ul>
  <li>I am not getting what is the problem here. Is there any problem in my code or its any kind of protection form filpkart website side?</li>
  </ul>