The screenshot of inspect code of this web page. I just want to make a dynamic click on button "search" but I tried a lot of ways and there are always problems..new to web scraping
I have tried:
from selenium import webdriver
my_url = 'https://sbs.naic.org/solar-external-lookup/lookup?jurisdiction=AL&searchType=Company&companyStatus=AC'
driver = webdriver.Chrome('D:/chromedriver')
driver.get(my_url)
driver.find_element_by_css_selector(".btn.btn-primary").click()
driver.find_element_by_xpath("//div[@class='btn btn-primary' and @id='submitBtn']").click()
driver.find_element_by_css_selector(".btn.btn-primary").click()
I just hope my pages can click the "search" button and go to the next page.