Clicking on Javascript tab using Selenium and Python without unique class id or element name
- 阅读更多 关于 Clicking on Javascript tab using Selenium and Python without unique class id or element name
问题 I have this HTML element code which I am currently struggling to figure out to use it for clicking on the tab that says Problem. As the "Problem" doesnt have a unique classname or element ID, I am unable to figure how to send a Click(). I have tried to check if z-index can be used as index(assumed) and used below line of code browser.switch_to_frame(a[3]) but it seems I am wrong. HTML code as below <div class="TabsViewPort" style="position: relative; overflow: hidden; width: 896px; height: