Hi, I am able to switch between tabs, access all elements. I am unable to scroll in this iframe. Please help. Code I am using is as follows.
iframe = self.browser.find_elements_by_tag_name('iframe')[0]
self.browser.switch_to_frame(iframe)
# Iterating through tabs
for tab_name in soup.find_all('md-dummy-tab'):
return_dict[tab_name.text] = []
tab_names.append(tab_name.text)
# clicking on tabs one by one
self.force_click('xpath=/html/body/div/md-content/md-tabs/md-tabs-wrapper/md-tabs-canvas/md-pagination-wrapper/md-tab-item[%s]/span' % tab)
tab += 1
time.sleep(2)
# Scrolling
try:
self.browser.execute_async_script("frame.scrollTo(0, 10000);")
except:
pass
time.sleep(2)