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

183
Views
Selenium-webdriver, no puedo ir a la ventana modal

Soy nuevo en las pruebas automatizadas. Ante tal problema, anteriormente en la prueba, voy a la ventana Iframe para ingresar los datos de la "tarjeta de prueba". En lugar de "página de éxito", se muestra una ventana modal en la que debo hacer clic. Selenio jura.

..............

 await driver.switchTo().frame(driver.findElement(By.xpath('//*[@id="solid-payment-form-iframe"]'))).then.....

...............................

 `await button46.click().then(async function() { bot.sendMessage(-100********, land+"\nTest completed!!✅"); console.log(button46.click,'SubmitButton - done'); return true//it existed }) await driver.switchTo().defaultContent(); const number = await driver.wait( until.elementLocated(By.xpath('//*[@id="specialOffer"]/div/div[2]/div[1]/a')) // (By.xpath('//*[@id="specialOffer"]/div/div[2]/div[1]/a')) , 20000).then(number => { return driver.wait( until.elementIsEnabled(number), 20000)})await number.click();`

Esto es lo que escribe la consola: ElementClickInterceptedError: element click intercepted: Element <a href="************************************* is not clickable at point (960, 536). Other element would receive the click: <iframe id="solid-payment-************************

Selenium webdriver javascript servidor remoto - selenoid (aerokube)

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

0

Para hacer clic en un elemento con elemento de selenio element.click clic en el elemento debe ser visible y se puede hacer clic, pero su elemento puede estar fuera del área visible o puede estar detrás de un cuadro de diálogo. Intente hacer clic inyectando javascript. He trabajado con la versión Python de selenium, así que vea el código python y conviértalo según sus necesidades:

 driver.execute_script("arguments[0].click()", button46)
about 4 years ago · Juan Pablo Isaza Report

0

ARREGLAR PROBLEMA:

 await driver.sleep(5000) const number1 = await driver.wait(until.elementLocated(By.xpath('//*[@id="specialOffer"]/div/div[2]/div[1]/a'))) await driver.executeScript("arguments[0].click()", number1)```
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!