作者:慕容盼烟迎曼 | 来源:互联网 | 2023-09-16 19:40
Imtryingtosetupatestautomationthatwillassertanelementcolorwhenclicked.However,Icou
I'm trying to setup a test automation that will assert an element color when clicked. However, I couldn't find the right way to do it. I'm a selenium newbie, I have tried every possible way to do it but failed.
我正在尝试设置一个测试自动化,它将在单击时确定元素的颜色。然而,我找不到正确的方法。我是一个硒新手,我尝试了所有可能的方法去做,但是失败了。
HTML:
HTML:
CSS:
CSS:
.imweb #mgifting-dialog .mg-friends .friend.selected, .imweb #mgifting-dialog .mg-friends .non-friend.selected {
background-color: #9DD4FD;
}
2 个解决方案