Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
HOW can i click the button ""GET DATA"" from the website  
 <a href="https://www1.nseindia.com/products/content/equities/equities/eq_security.htm">https://www1.nseindia.com/products/content/equities/equities/eq_security.htm</a>  if any one know how to do it please share ?


What I have tried:

b = driver.find_element_by_xpath("//*[@id='submitMe']]").clickl()
Posted
Updated 9-May-22 7:03am
Comments
Richard MacCutchan 7-May-22 8:17am    
Are you sure that @id='submitMe' is the correct id for that button?
Pankaj Rawat May2022 7-May-22 9:00am    
yeah it is showing that only
and u can check from the link https://www1.nseindia.com/products/content/equities/equities/eq_security.htm
Richard MacCutchan 7-May-22 10:05am    
I just checked and that is not the id of the Get Data button, which is "get". Although there appears to be some duplication in the source code of that page.
Pankaj Rawat May2022 7-May-22 11:04am    
so how due u think i should solve the problem i have used get but not working
Richard MacCutchan 7-May-22 12:04pm    
I have no idea what your code is doing, or what "not working" means, so I cannot comment.

1 solution

Try using element id,
b = driver.find_element_by_id('submitMe')
b.click()

Hope it helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900