How can I click on an element with JS-Nemo?
Hello Alex,
You can add click()
command. Please refer to the sample below:
it('should load a website', async function () {
this.nemo.driver.manage().timeouts().implicitlyWait(5000);
await this.nemo.driver.get(this.nemo.data.baseUrl);
await this.nemo.driver.get("https://lambdatest.github.io/sample-todo-app/");
await this.nemo.view._waitVisible('name:li1', 5000);
this.nemo.view._find('name:li1').click();