0

What is the best way to deal with dynamic web table using serenity screenplay? in selenium I use to do like,

List <webelement> rows = wd.findElements(By.xpath(".//*[@id='leftcontainer']/table/tbody/tr/td[1]")); 
sama940
  • 35
  • 1
  • 5
  • which part in your locator is dynamic? Try this one https://serenity-bdd.github.io/docs/screenplay/screenplay_webdriver#using-dynamic-targets – lucas-nguyen-17 Mar 14 '23 at 10:29
  • @lucas-nguyen-17 table rows are going to be dynamic as per filter selection and thanks for the link. – sama940 Mar 14 '23 at 12:26

0 Answers0