On my website, I verify several data on the first page (each verification corresponding to a keyword) :
I would like to repeat each keyword as many time as the pagination exists.
I think that I must use FOR loop but I don't know how to do this.
Here is an example :
The goal of this test is to verify that the pages display all advert which are SALE type and MARSEILLE city. For the first page, I create 2 keywords.
The page only displays a SALE advert
${elements}= Get WebElements id=type
FOR ${element} IN @{elements}
Log ${element.text}
Element Should Contain ${element} VENTE
END
The page only displays the MARSEILLE city
${elements}= Get WebElements id=locality
FOR ${element} IN @{elements}
Log ${element.text}
Element Should Contain ${element} MARSEILLE
END
I would repeat this keyword while the pagination exists.
Have you any idea? I'm a beginner on RF and I'm not a developer so if you have a "simple" solution, I take it :-)
question from:
https://stackoverflow.com/questions/65934433/robotframework-repeat-several-keyword-written-in-gerkhin-for-pagination-test 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…