I have a div
with an id
which contains a div with no id
but it has a class
. No the issue is,I want to check the background color of the second div
. Your help is welcome.
<div id = "wrapper">
<div class="container iframe-container">
<style>
body { background-color: #000111; } .form-horizontal .control-label { font-style: normal; } ...
</style>
basically I want to check if the background is #000111
Finally found the answer:
within_frame('wrapper') do
color = find('body').native.css_value('background-color')
expect(color).to eq('rgba(0, 1, 17, 1)')
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With