How to click an element in PHP-PHPUnit ?
Hi Rhian,
To click an element in PHP-PHPUnit, add the following code snippet in your test file:
$itemName = 'Yey, Lets add it to list';
self::$driver->get("https://lambdatest.github.io/sample-todo-app/");
$element1 = self::$driver->findElement(WebDriverBy::name("li1"));
$element1->click();