Home > other >  Python DOM element attributes, have a chance to get wrong, how to return a responsibility?
Python DOM element attributes, have a chance to get wrong, how to return a responsibility?

Time:10-11

http://xkz.cbirc.gov.cn/jr/has a chance to the pop-up dialog, my task is to detect the pop-up dialog box, and then to deal with, I
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?
  • Related