我想检查元素中存在的属性值。在
我有以下Python代码:
validkey = False
# Was the key valid.
element = w.find_element_by_id('registerkey_form')
# Is the activation message is shown, meaning it was successful in activation.
if element.get_attribute('style'):
validkey = True
问题是最后一行。 我想检查一下:
^{pr2}$不仅是风格本身的存在,还有价值。在
最初是:
style="display:none;"
我想检查一下是不是“阻塞”。在
如果要检查
style
属性的值,请尝试或者最好按以下方式进行:
^{pr2}$相关问题 更多 >
编程相关推荐