1

I'm still learning and im trying to automate something. I am trying to execute the below code. I tried to run the code, but it still does not work.

Input:

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
   
driver = webdriver.Chrome(executable_path='/Users/deep/Desktop/Selenium/chromedriver') 
url = 'https://healthscreening.schools.nyc/?type=G'

driver.get(url)

last_name = driver.find_element_by_xpath('//*[@id="guest_last_name"]').send_keys('test test')
email = driver.find_element_by_xpath('//*[@id="guest_email"]').send_keys('testtest@gmail.com')
button = driver.find_element_by_xpath('//*[@id="btnDailyScreeningSubmit"]/button').click()

driver.find_element_by_xpath('')

driver.quit

Output:

OSError: [Errno 8] Exec format error:

Any suggestions on what to do? On macos using vscode

deepsingh
  • 37
  • 1
  • 6

0 Answers0