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

414
Views
¿Cómo verificar el mensaje de información sobre herramientas al pasar el mouse en Selenium?

Quiero hacer la función de pasar el mouse sobre la información sobre herramientas, que muestra el mensaje.

Aquí está el enlace al video: https://screenrec.com/share/5IWTd4a7i9

Por alguna razón, el desplazamiento no sucede debido a que no obtengo el texto y la prueba falla

Esto es lo que he probado

 browser.actions() .mouseMove( element(by.xpath('/html/body/app-root/div/main/ng-component/ngb-tabset/div/div/view-concepts-tab/div[1]/concept-view/div/dl/mat-accordion/mat-expansion-panel/div/div/div[4]/term-view/div/div[3]/div[1]/dl/mat-accordion/mat-expansion-panel/mat-expansion-panel-header/span[1]/mat-panel-description/dd/span'))) .click() .perform(); text('On mouse hover')

También probé

 expect(element.all(by.xpath('/html/body/app-root/div/main/ng-component/ngb-tabset/div/div/view-concepts-tab/div/concept-view/div/dl/mat-accordion/mat-expansion-panel/div/div/div[2]/term-view/div/div[3]/div[1]/dl/mat-accordion/mat-expansion-panel/mat-expansion-panel-header/span[1]/mat-panel-description/dd/span'))).toEqual('On mouse hover');

EDITAR

Obtuve cierto éxito con el siguiente código, sin embargo, se espera que el error Expected [ ] to equal 'On mouse hover'.

 expect(element.all(by.css('dd#A>span'))).toEqual('On mouse hover');
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Tienes que usar el valor del atributo del título, luego obtendrás el texto de información sobre herramientas. no tienes que desplazarte hasta el elemento.

expect(element(By.id("xyz")).getAttribute("title")).ToBe("Texto de información sobre herramientas");

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!