Trying to get the contents of body in table id = mytable by putting value in registration no. But failed to get.
Tried using headers like user agents and beautifulsoup network tab form data, but failed to get.
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver import ActionChains
url="https://rof.mahaonline.gov.in/Search/Search"
driver = webdriver.Chrome(r'C:\chromedriver.exe')
driver.get(url)
driver.find_element_by_xpath("""//*[@id="registrationnumber"]""").send_keys("MU000000001")
driver.find_element_by_xpath("""//*[@id="btnSearch"]""").click()
soup = BeautifulSoup(driver.page_source, 'html.parser')
table = soup.find('table',{'id':'myTable'})
body = table.find('tbody')
print(body)
driver.close()
Please help me to get through this help , it will be very good if this solve with beautifulsoup form data, thanks in advance.