with the following code
visibilityMy=driver. Find_element_by_id (" show_msg "). Get_attribute (' style ') # normal return z - index: 20001; Width: 450 px;
[@ #//* id="show_msg"] sometimes front desk have a verification code, program also detect
Print (visibilityMy)
Testing at the front desk is HTML
& lt; Div id="show_msg" style="z - index: 20001; Width: 450 px; display: block; Visibility: the visible;">
But my print (visibilityMy) the result is "z - index: 20001; Width: 450 px;" , don't know why sometimes less, can help have a look? There is a js?