Hi,I am a new learner to be here to learn how to use facebook-wda. Now I met a problem. The problem is when i use "elements =s(text='Dashboard').find_elements()" to get "Array of Element object",But i use "elements[0]" to call click() method like this "elements[0].click()". Because it's Element object. But we can use "element=s(type="Dashboard", textContains="房间")[0]" to call click() method like this "element.click()". Because it's Selector object. How to convert wda.Element Object to wda.Selector Object each other?
Hi,I am a new learner to be here to learn how to use facebook-wda. Now I met a problem. The problem is when i use "elements =s(text='Dashboard').find_elements()" to get "Array of Element object",But i use "elements[0]" to call click() method like this "elements[0].click()". Because it's Element object. But we can use "element=s(type="Dashboard", textContains="房间")[0]" to call click() method like this "element.click()". Because it's Selector object. How to convert wda.Element Object to wda.Selector Object each other?