
selenium框架基础学习
starts-with 开头相同 //a[starts-with(text(),"o")]contains 任意位置包含 //a[contains(text(),"o")]get_screenshot_as_file(path) 截图保存到文件。switch_to.window('window_name') 切换窗口。get_screenshot_as_png()截图的base64内容。last() 列表最后一个 //a[last()]switch_to.alert()处理弹窗。












