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

229
Views
¿Cómo puedo rastrear el DOB que se da en formato de texto en una página de Wikipedia y afirmar que un DOB es mayor que otro usando ciprés? aprendiendo ciprés

Esto es en lo que estoy trabajando:

  • Accede a esta página: https://en.wikipedia.org/wiki/The_Beatles
  • Hace clic en el primer enlace a la página de Wikipedia de Paul McCartney
  • Realiza un seguimiento de la fecha de nacimiento de Paul McCartney
  • Vuelve a la página de The Beatles
  • Hace clic en el primer enlace a la página de Wikipedia de John Lennon
  • Realiza un seguimiento de la fecha en que nació John Lennon
  • Afirma que John Lennon nació antes que Paul McCartney
 describe('iCONNECT Test Suite', function () { it('Test Case 1', function () { cy.visit('https://en.wikipedia.org/wiki/The_Beatles') cy.get(':nth-child(8) > [href="/wiki/Paul_McCartney"]').click() cy.get('.mw-parser-output > :nth-child(6)').contains('18 June 1942') cy.go(-1) cy.wait(7000) cy.get(':nth-child(8) > [href="/wiki/John_Lennon"]').click() cy.get('.mw-parser-output > :nth-child(6)').contains('9 October 1940') expect(1940).to.be.lessThan(1942) }) })
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Puedes hacer algo como esto:

 describe('iCONNECT Test Suite', function () { it('Test Case 1', function () { cy.visit('https://en.wikipedia.org/wiki/The_Beatles') cy.get('.infobox-data') .find('li > [href="/wiki/Paul_McCartney"]', {timeout: 7000}) .click() cy.get('.infobox-data', {timeout: 6000}) .eq(0) .should('be.visible') .invoke('text') .should('include', '18 June 1942') //Assert the birth day for Paul McCartney cy.get('.infobox-data') .eq(0) .find('span') .invoke('text') .then((text) => text.slice(2, 6)) .as('paulBirthYear') //Get Birth year for Paul McCartney cy.go(-1) cy.get('.infobox-data') .find('li > [href="/wiki/John_Lennon"]', {timeout: 7000}) .click() cy.get('.infobox-data', {timeout: 6000}) .eq(0) .should('be.visible') .invoke('text') .should('include', '9 October 1940') //Assert the birth day for John Lennon cy.get('.infobox-data') .eq(0) .find('span') .invoke('text') .then((text) => text.slice(1, 5)) .as('johnBirthYear') //Get Birth year for John Lennon cy.get('@paulBirthYear').then((paulBirthYear) => { cy.get('@johnBirthYear').then((johnBirthYear) => { expect(+johnBirthYear).to.be.lessThan(+paulBirthYear) //Assert John Lennon is older than Paul McCartney }) }) }) })

Ejecución del corredor de prueba:

Ejecución del corredor de prueba

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!