خرید بک لینک

Vote count: 0

On page I have HTML element which changes after a few seconds (to few minutes) from:

<div style="opacity: 1; width: 100%;" id="progressbar-overlay" class="wings-progressbar-overlay"></div>

to:

<div style="opacity: 0; width: 0%;" id="progressbar-overlay" class="wings-progressbar-overlay"></div>

It's part of loader. I want to wait till this element change.

I've tried with this:

element = self.check_element(By.ID, "progressbar-overlay", "Progressbar wasn't displayed", tekst)

    for x in range(0, 120):
        if element.value_of_css_property("opacity")==1:
            print element.value_of_css_property("opacity") + " not yet"
        else: 
            print element.value_of_css_property("opacity") + " end"
            break

but result is:

1 en.

Ran 1 test in 23.021s

OK d

Why doesn't it work and how to wait on this element's change?

asked 1 min ago

- - , .

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 17 اسفند 1394 ساعت: 20:59

صفحه بندی