Using Selenium in Python, I am trying to write a function that, based on a company name, employee first name, and last name, does the following:
- Goes to this website: https://dwcdataportal.fldfs.com/Exemption.aspx
- Fills in the company name, employee first name, and last into their respective fields (leaving “Federal Employer ID Number” blank and keeping “Construction/Non-Construction” as its default value “All”)
- Searches based on that information
- Returns true if records are found and false if not
Can anyone help with building this?
Here is the starting framework for the code:
from selenium import webdriver
driver = webdriver.Chrome('driver_location')
def owner_exemption(company_name, employer_first_name, employer_last_name):
# The above code would go here
Thank you in advance for your help.