fixing Selenium's deprecated 'switch_to_frame'