How can I click on an element with JS-Protractor?
Hello Alex,
You can add click()
command.
Please refer to the sample below:
browser.get('https://lambdatest.github.io/sample-todo-app/');
browser.driver.findElement(by.name('li1')).then(function (foundElement) {
foundElement.click();
});