//Regular lecture 34: 13-Nov-2022
//*Topic*//cypress - lecture 8//
//traversal methods: lecture 3
describe("traversal methods", function(){
it(".prevUntil method", function(){
cy.visit("http://www.webdriveruniversity.com/Data-Table/index.html")
cy.get('[id="espresso"]').prevUntil('[id="coffee"]')
})
it(".nextUntil method", function(){
cy.visit("http://www.webdriveruniversity.com/Data-Table/index.html")
cy.get('[id="tea"]').nextUntil('[id="sugar"]')
})
it(".prevAll method", function(){
cy.visit("http://www.webdriveruniversity.com/Data-Table/index.html")
cy.get('[id="espresso"]').prevAll()
})
it(".nextAll method", function(){
cy.visit("http://www.webdriveruniversity.com/Data-Table/index.html")
cy.get('[id="tea"]').nextAll()
})
})
it.only("",()=>{
cy.visit("https://www.webdriveruniversity.com/Dropdown-Checkboxes-RadioButtons/index.html")
const a = cy.get('[id="radio-buttons-selected-disabled"]')
const b = a.find('input[checked]')
if(.should('be.checked')){}
cy.log('button is checked')
})
टिप्पण्या
टिप्पणी पोस्ट करा
आपल्या प्रतिक्रियेबद्दल धन्यवाद ! आम्ही लवकरात लवकर प्रतिक्रियेला उत्तर देण्याचा प्रयत्न करू