I have following code in my web page.
<div id="" class="user_acc_setails">
<ul id="accDtlUL">
<li>First Name: <span id="f_name">Anuja</span></li>
By the time page loading, the value for Sapn is not set. It will take very small time to set the value. I want to wait and get that value in my Python file.
I'm currently using following code,
element = context.browser.find_element_by_id('f_name')
assert element.text == 'Anuja'
But it gives me an AssetionError. How can I solve this?
Thanks