JQuery Haga clic en la función
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
Confused Cobra
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
$( "#other" ).click(function() {
$( "#target" ).click();
});
const assert = require('assert')
describe('v5.webdriver.io', () => {
it('should demonstrate the click command', async () => {
browser.url('https://v5.webdriver.io')
const helpButton = await $('[href="/help.html"]')
await helpButton.click()
await browser.pause(2000);
const guidButton = await $('[href="/docs/gettingstarted.html"]')
await guidButton.click()
await browser.pause(2000);
})
})