My problem is that when I switch to an iframe in python selenium, everything stops working. For example, I can call:

```
driver.find_element_by_xpath(XPATH HERE).click() 

```

before switching iframes and it works fine, but as soon as I call the code 

```
WebDriverWait(driver,30).(EC.frame_to_be_available_and_switch_to_it)

```

everything stops working after the frame successfully switches.

I have switched from Chromedriver to geckodriver for firefox, and the code works without error.

I've encountered this problem ever since I downloaded the new chromedriver as my chrome browser is now version 76. I did try redownloading the chromedriver as well. 

I have tried testing if there was any changes in the identifying features I used to tell the driver what to do. This includes making sure the XPATHs are still the same, the ID is still the same.

I have also tried checking if the element was located in the correct iframe or if the iframe has changed. 

None of these worked. 

```
WebDriverWait(driver,30).(EC.frame_to_be_available_and_switch_to_it).(By.ID "iframehere")))
driver.find_element_by_xpath(XPATH HERE).click()

```

I expected the code to run successfully, like literally a day before I had to download a new chromedriver to accomodate chrome version 76. Or how it works without errors on geckodriver. 

Now, I have this error:

```
JavascriptException: javascript error: unhandled object (Session info: chrome=76.0.3809.100)

```