How can I do validate that a checkbox is selected in KARATE UI testing?

Viewed 37
  • def scr = scriptAll('assert(await driver.findElement(By.xpath("//div[5]/div/p-checkbox/div/div[2]/span")).isSelected())')
  • match scr == true

I tried this way but I think logic is wrong.

1 Answers
Related