I need to open the search windows on this page.
https://permits.losgatosca.gov/CitizenAccess/default.aspx
With firefox is working just fine, but when I try to do the same with phantomJS i got an error.
This is the code I'm using to open the search
BUTTON_id = 'ctl00_PlaceHolderMain_TabDataList_TabsDataList_ctl01_LinksDataList_ctl00_LinkItemUrl' #'//*[@id="ctl00_PlaceHolderMain_TabDataList_TabsDataList_ctl01_LinksDataList_ctl00_LinkItemUrl"]/span'
driver_1.switch_to_frame("ACAFrame")
button = driver_1.find_element_by_id(BUTTON_id)
button.click()
And this is the error I'm getting with phanthomJS:
Message: Error Message => 'Unable to switch to frame'
In this post it says that using:
driver.switchTo().frame(frame_index)
driver.switchTo().frame(frame_id)
driver.switchTo().frame(frame_object)
It solves the issue, but I don't know what to put in:
frame_index
frame_id
frame_object