Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

149
Views
Cómo llegar al elemento cargado por js después de hacer clic en mocha

Necesito hacer clic en el elemento (desplegable) cargado por js y visible solo después de hacer clic en el elemento a continuación. Mi prueba de moka está lanzando:

 ElementNotInteractableError: element not interactable

¿Puede usted ayudar?

 const { Builder, By, Key, until } = require('selenium-webdriver') const assert = require('assert') describe('test create node/folder', function(done) { this.timeout(30000) let driver let vars beforeEach(async function() { driver = await new Builder().forBrowser('chrome').build() vars = {} }) afterEach(async function() { await driver.quit(); }) it('test name', async function() { await driver.get("https://testing-website.com/") // Some testing steps representing user behavior navigating the website await driver.findElement(By.css(".px-2 > .w-fit > .d-flex > .hover-visible > .hover-visible-el > .mx-2 > .ui-svg-inline")) await driver.findElement(By.css(".px-2 > .w-fit > .d-flex > .hover-visible > .hover-visible-el > .mx-2 > .ui-svg-inline")).click() // some steps after }) })

¿Cómo simular un clic del mouse en el elemento y cargar el código debajo?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

La respuesta es resumir el movimiento de la aspiradora del mouse de la siguiente manera:

 await driver.wait(until.elementLocated(By.css(".px-2 > .w-fit > .d-flex > .hover-visible > .hover-visible-el > .mx-2 > .ui-svg-inline")), 30000) { const hoverLocation = await driver.findElement(By.css(".px-2 > .w-fit > .d-flex > .hover-visible > .hover-visible-el > .mx-2 > .ui-svg-inline")); const actions = driver.actions({ bridge: true }); await actions.move({origin: hoverLocation}).perform(); }
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!