Here is the link for which I want to extract a button link text, but I'm unable to do it so After the website opens, I'm selecting an option from a "Choose a Product" , suppose I choose first option i.e "Acrylic Coatings", then 3 types appears, which is "Primers", "Intermediates", "Finishes", I want to extract their text which I'm unable to do.
import requests
from bs4 import BeautifulSoup
driver = webdriver.Chrome('~/chromedriver.exe')
driver.get('http://www.asianpaintsppg.com/applications/protective_products.aspx')
lst_name = ['Acrylic Coatings','Glass Flake Coatings']
for i in lst_name:
print(i)
driver.find_element_by_xpath("//select[@name='txtProduct']/option[text()="+"'"+str(i)+"'"+"]").click()
page = requests.get("http://www.asianpaintsppg.com/applications/protective_products.aspx")
soup = BeautifulSoup(page.content, 'html.parser')
for div in soup.findAll('table', attrs={'id':'dataLstSubCat'}):
print(div.find('a')['href'])
But I get empty values here. Any help would be appreciated.