Karate UI: unable to find the child element using friendly locator and looking for some alternatives

前端 未结 1 1130
刺人心
刺人心 2021-01-27 03:20

Looking for an alternative of findElement.findElement like in selenium. I have tried chainable keywords available in like friendly locators but none of them worked. I want to ge

1条回答
  •  再見小時候
    2021-01-27 03:36

    Try 0.9.6.RC3 - you should be able to chain locate()

    * def e = locate('.example')
    * match e.locate('p').text == 'Random Text'
    

    Else please follow this process so that the scenario is more clear - and help us fix this: https://github.com/intuit/karate/tree/develop/examples/ui-test

    0 讨论(0)
提交回复
热议问题