selenium.common.exceptions.NoSuchFrameException: and text input

I'm trying to enter in text input in this 'CC' field located at:

https://ggbs.tarim.gov.tr/cis/servlet/StartCISPage?PAGEURL=/FSIS/ggbs.takviyeGidaSorgu.html&POPUPTITLE=AnaMenu

using python and selenium. It seems to be wrapped in a frame or two, and I'm unable to locate the element using selenium. Code is below. What am I doing wrong?

time.sleep(15)
driver.switch_to.frame('SCPIFRAMEMozilla') #('SCPFRAMEBUFFER')
captcha=driver.find_element_by_name('CC')```


Read more here: https://stackoverflow.com/questions/67935646/selenium-common-exceptions-nosuchframeexception-and-text-input

Content Attribution

This content was originally published by Scott Goulds at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: