-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99c14d4
commit 93124d4
Showing
6 changed files
with
68 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,18 @@ | ||
# 13. Cypress XHR ile çalışma | ||
--- | ||
description: XHR is XML HTTP Request. | ||
--- | ||
|
||
# 🦊 13. Cypress XHR ile çalışma | ||
|
||
XHR, XML HTTP İsteğidir. Bu bir Uygulama Programlama Arayüzüdür (API). yöntemleri bir web tarayıcısı ile sunucu arasında veri gönderen bir nesne olarak kullanılabilir. Bir nesnesi bir sunucudan yanıt biçiminde veri talep edebilir | ||
|
||
```javascript | ||
//aliasing request | ||
cy.request('https://jsonplaceholder.cypress.io/comments').as('c') | ||
|
||
cy.get('@c').should((response) => { | ||
expect(response.body).to.have.length(100) | ||
expect(response).to.have.property('headers') | ||
}) | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,45 @@ | ||
# 14. Cypress Checkbox | ||
# ✅ 14. Cypress Checkbox | ||
|
||
```javascript | ||
// click all the checkboxes | ||
cy.get('input[type="checkbox"]').check() | ||
|
||
// click a checkbox with id check | ||
cy.get('#chk').check() | ||
|
||
// click a checkbox with value Cypress | ||
cy.get('input[type="checkbox"]').check('Cypress') | ||
|
||
// click the checkboxes with values - Java and Python | ||
cy.get('input[type="checkbox"]').check(['Java', 'Python']) | ||
|
||
// click the checkbox having value Java with options | ||
cy.get('.chk').check('Java', options) | ||
|
||
// click the checkboxes with values – Java and Python with options | ||
cy.get('input[type="checkbox"]').check(['Java', 'Python'], options) | ||
|
||
// click the checkbox having class check with an option | ||
cy.get('.chk').check({force : true}) | ||
|
||
// uncheck all the checkboxes | ||
cy.get('input[type="checkbox"]').uncheck() | ||
|
||
// uncheck a checkbox with id check | ||
cy.get('#chk').uncheck() | ||
|
||
// uncheck the checkbox with value Cypress | ||
cy.get('input[type="checkbox"]').uncheck('Cypress') | ||
|
||
// uncheck the checkboxes with values - Java and Python | ||
cy.get('input[type="checkbox"]').uncheck(['Java', 'Python']) | ||
|
||
// uncheck the checkbox having value Java with options | ||
cy.get('.chk').uncheck('Java', options) | ||
|
||
// uncheck the checkboxes with values – Java and Python with options | ||
cy.get('input[type="checkbox"]').uncheck(['Java', 'Python'], options) | ||
|
||
// uncheck the checkbox having class check with an option | ||
cy.get('.chk').uncheck({force : true) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# 15. Cypress Cookie İşlemleri | ||
# 🍪 15. Cypress Cookie İşlemleri | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters