2016-12-13 13 views

答えて

1

あなたは.get_attribute()メソッドを使用して、結果はこのようなNoneであるかどうかを確認することができます:

x = element.get_attribute('class') 
if x is not None: 
    # then it has the attribute! 
else: 
    # it doesn't have the attribute =(
関連する問題