For some reason, I am experiencing difficulty in clicking the login button even though my code appears to be accurate and there are no iframes or windows present:
const { Builder, By, Key, until } = require('selenium-webdriver');
const { expect } = require('chai');
describe('SignupTest', () => {
const driver = new Builder().forBrowser('chrome').build();
it('signing up with a valid email and password', async () => {
await driver.get('https://ca.letgo.com/en');
const loginButton = driver.findElement(By.xpath("//button[contains(.,'Log In')]"));
driver.execute("arguments[0].click()",loginButton)
//await driver.findElement(By.xpath("//button[contains(.,'Log In')]")).click();
//name=email
//name=password
//name=name
//xpath=//span[contains(.,'Sign Up')]
//await driver.sleep(20000);
});