Here is the exception that I am getting:
Traceback (most recent call last):
File "/home/navendu/lead-generator/python_scripts/tempCodeRunnerFile.py", line 12, in <module>
driver.switch_to_frame("http://103.251.43.139/~ksebuser/orumabills/upload/billview/")
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 789, in switch_to_frame
self._switch_to.frame(frame_reference)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/switch_to.py", line 87, in frame
raise NoSuchFrameException(frame_reference)
selenium.common.exceptions.NoSuchFrameException: Message: http://103.251.43.139/~ksebuser/orumabills/upload/billview/
Here is the python code that I am running:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
driver = webdriver.Chrome()
driver.get("http://www.kseb.in/index.php?option=com_wrapper&view=wrapper&Itemid=813&lang=en")
driver.maximize_window()
driver.implicitly_wait(7)
driver.switch_to_frame("http://103.251.43.139/~ksebuser/orumabills/upload/billview/")
ele = driver.find_element_by_id('t_consumer-no_5')
ele.send_keys("some text")
Here is the link to the web page. I am trying to automate form filling in that website http://www.kseb.in/index.php?option=com_wrapper&view=wrapper&Itemid=813&lang=en