Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions archive/Vid22_HandleNewPage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ import {expect, test} from "@playwright/test"
test("Handle New Page", async({context})=>{
const page = await context.newPage();
await page.goto("https://testpages.eviltester.com/styled/windows-test.html");
await expect(page).toHaveTitle("Windows Example Test");
await expect(page).toHaveTitle("Windows Links | Test Pages");
const pagePromis = context.waitForEvent("page");
await page.locator("id=gobasicajax").click();
const newPage = await pagePromis;
await newPage.locator("[name='submitbutton']").click();

await page.getByRole('link', { name: 'About' }).click();

})
4 changes: 2 additions & 2 deletions archive/Vid35_ReadDataFromExternalCSVFile.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const records = parse(fs.readFileSync("testdata/testdata.csv"), {
})

records.forEach((record)=>{
test(`Get Data from CSV - ${record.Id}`, async ({ page }) => {
test(`Get Data from CSV forEach practice - ${record.Id}`, async ({ page }) => {
//console.log(records);
await page.goto("https://demoqa.com/automation-practice-form");
await page.getByPlaceholder('First Name').fill(record.FirstName);
Expand All @@ -21,7 +21,7 @@ records.forEach((record)=>{

for (const record of records) {

test(`Get Data from CSV - ${record.Id}`, async ({ page }) => {
test(`Get Data from CSV for loop practice- ${record.Id}`, async ({ page }) => {
//console.log(records);
await page.goto("https://demoqa.com/automation-practice-form");
await page.getByPlaceholder('First Name').fill(record.FirstName);
Expand Down
23 changes: 23 additions & 0 deletions archive/Vid63_PlaywrightCLIPractice1.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import {expect, test} from "@playwright/test"

test("Playwright CLI Practice Test 1",async({page})=>{
console.log("Starting Practice Test 1");
await page.goto("https://www.google.com");
await expect(page).toHaveTitle("Google");
console.log("Ending Practice Test 1");
})

test("Playwright CLI Practice Test 2",async({page})=>{
console.log("Starting Practice Test 2");
await page.goto("https://www.google.com");
await expect(page).toHaveTitle("Google1");
console.log("Ending Practice Test 2");
})

test("Playwright CLI Practice Test 3",async({page})=>{
console.log("Starting Practice Test 3");
await page.goto("https://www.google.com");
await expect(page).toHaveTitle("Google");
console.log("Ending Practice Test 3");
})

23 changes: 23 additions & 0 deletions archive/Vid63_PlaywrightCLIPractice2.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import {expect, test} from "@playwright/test"

test("Playwright CLI Practice Test 4",async({page})=>{
console.log("Starting Practice Test 4");
await page.goto("https://www.google.com");
await expect(page).toHaveTitle("Google");
console.log("Ending Practice Test 4");
})

test("Playwright Practice CLI ,Test 5 @UAT",async({page})=>{
console.log("Starting Practice Test 5");
await page.goto("https://www.google.com");
await expect(page).toHaveTitle("Google");
console.log("Ending Practice Test 5");
})

test("Playwright CLI Practice Test 6",async({page})=>{
console.log("Starting Practice Test 6");
await page.goto("https://www.google.com");
await expect(page).toHaveTitle("Google");
console.log("Ending Practice Test 6");
})

Loading
Loading