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

87
Views
Leer un elemento dentro de un iframe

Estoy creando una extensión de Edge. Estoy tratando de obtener exactamente el mismo elemento que esta pregunta , pero quiero usar JS, no Selenium. Elemento

Estoy ejecutando el JS a través del script de fondo de mi extensión. En el futuro, me gustaría que la ventana emergente tuviera un botón y ese botón para leer la sílaba en la pantalla.

La solución provista está en Selenium y me gustaría transpilarla en JS. driver.switch_to_frame(driver.find_element_by_xpath("//div[@class='game']/iframe[contains(@src,'jklm.fun')]"))

Si nada de esto funciona, supongo que tendré que usar el reconocimiento óptico de texto.

Aquí está manifest.json

 { "name": "myName", "description": "myDescription", "version": "1.0.0", "manifest_version": 3, "icons": { "128": "myIcon.png" }, "content_scripts": [ { "matches": [ "https://jklm.fun/*" ], "js": [ "js/myScript.js" ] } ] }

Dentro de la carpeta js , aquí está myScript.js

 console.log('myscript is running') const syllableHandler = () => { const iframe = document.getElementsByTagName("iframe") console.log(iframe?.[0]?.contentWindow) } document.addEventListener('keydown', syllableHandler)
about 4 years ago · Juan Pablo Isaza
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!