Telefonica / toolium

Wrapper tool of Selenium and Appium libraries to test web and mobile applications in a single project
Apache License 2.0
115 stars 62 forks source link

NOV-239933: set webview to pagelements #366

Closed hesteban-tuenti closed 1 year ago

hesteban-tuenti commented 1 year ago

When using toolium in a mobile context like the one in we have in Novum, where we have the native context and the webview context with a bunch of different webviews and we have defined elements of class PageElements that should be located within the webview context, the current implementation won't work because the pageelements are located in the native context by definition.

To cope with it so far we have been defining a parent element with the webview attribute set to true, and passing it in the initializer of the PageElements element.

Mostly this does the trick with the caveat to have to define extra elements in the pageobject but recently we found an scenario where also iframes are involved and this doesn't work NOV-239995

hesteban-tuenti commented 1 year ago

hi @rgonalo , there is an error in the tests with python 3.9. I don't think it's related with the changes but I don't have permissions to re-launch the job action. Could you do it ?

codeclimate[bot] commented 1 year ago

Code Climate has analyzed commit a4c3e63b and detected 0 issues on this pull request.

View more on Code Climate.