selene icon indicating copy to clipboard operation
selene copied to clipboard

can we search through iFrame in Selene? :)

Open yashaka opened this issue 5 years ago • 4 comments

like canopy can

image

yashaka avatar Apr 30 '20 09:04 yashaka

But should selene search through iframes?

Sometimes different iframes have same unique elements. And selene users will try to find an element they could will find first element of the list which is formed from different iframes. Will it be useful for them?

Even if user will find not unique element by unique path to it, for example by using iframe unique attribute. Could selene interact with them without webdriver "switching" to iframe?

And the last question: how hard this would be to realize and support and test as a selene feature?

aleksandr-kotlyar avatar Jan 07 '21 23:01 aleksandr-kotlyar

Sometimes different iframes have same unique elements. And selene users will try to find an element they could will find first element of the list which is formed from different iframes. Will it be useful for them?

same happens even without iframes:) so should not be a problem)

yashaka avatar Jan 09 '21 22:01 yashaka

Even if user will find not unique element by unique path to it, for example by using iframe unique attribute. Could selene interact with them without webdriver "switching" to iframe?

kind of not... then we have to implement some smart switching mechanism... :)

yashaka avatar Jan 09 '21 22:01 yashaka

And the last question: how hard this would be to realize and support and test as a selene feature?

this is an open point:)

actually such kind of open points come also from #248

yashaka avatar Jan 09 '21 22:01 yashaka