2017-07-25 49 views
-1

如何檢查機器人框架中的顏色?是否需要任何圖書館或關鍵詞? (注意:目前我正在使用機器人框架 - 擴展Selenium庫,集合,字符串,Excel庫)。 場景:我想檢查特定應用程序中的背景顏色,文本顏色和字體樣式。如何檢查機器人框架中的顏色?

HTML:

<div style="display: table-cell;background: #FF0040;width: 33%;"> 
    <span style="margin-top: 10px;display: block;" class="ng-binding">Total Alarms</span> 
    <span style="font-size: 30pt;margin: 10px;display: block;" class="ng-binding">127</span> 
</div> 

CSS:

element.style { display: table-cell; 
       background: #FF0040; 
       background-image: initial; 
       background-position-x: initial; 
       background-position-y: initial; 
       background-size: initial; 
       background-repeat-x: initial; 
       background-repeat-y: initial; 
       background-attachment: initial; 
       background-origin: initial; 
       background-clip: initial; 
       background-color: rgb(255, 0, 64); 
       width: 33%; 
} 
+0

向我們展示您的HTML/CSS? – Goralight

+0

Total Alarms 127

+0

CSS code:element.style { display:table-cell; 背景:#FF0040; background-image:initial; background-position-x:initial; background-position-y:initial; background-size:initial; background-repeat-x:initial; background-repeat-y:initial; background-attachment:initial; background-origin:initial; background-clip:initial; background-color:rgb(255,0,64); 寬度:33%; } –

回答