In the Screenplay Pattern, each Task is represented by a separate class.
Jan Molak
3

Can you please point me to an example where i can construct a string and from that string the identifier is formed, Example

String addEntryXpath= “.//*[@href=’/”+xyz()+”/abc/’]”;

WebElement addNewEntryButton =getDriver().findElement(By.xpath(addEntryXpath));

This thing is mainly done when there are dynamic elements being added and a loop could be formed to get data from a table?

Since i am not passing the driver anywhere in the code, how do i handle these? If a sample code snippet can be shared it would help

Show your support

Clapping shows how much you appreciated divya parvati’s story.