1、先定位到元素
a=driver.find_element_by_class_name('Select_text')
2、在使用方法get_attribute
a.get_attribute(参数)#该参数为属性名称
3、使用断言assertIn(a,b)断言
4、该方法可以获取input标签的value属性内容值
1、先定位到元素
a=driver.find_element_by_class_name('Select_text')
2、在使用方法get_attribute
a.get_attribute(参数)#该参数为属性名称
3、使用断言assertIn(a,b)断言
4、该方法可以获取input标签的value属性内容值
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。