rockmelonqa / rockmelonqa-ide

Test Automation IDE that generates and runs Playwright and Selenium code
MIT License
4 stars 3 forks source link

Can't select element on new tab #208

Closed hanglequan1991 closed 11 months ago

hanglequan1991 commented 1 year ago

Can't select element when new tab is openned.

rmproj: image

log errors:

Executing: '..env\rmv.env.bat && ..env\run.local.env.bat && npx playwright test test-suites/LoginTestSuite.spec.ts:6 --headed --project=chromium'

Command "..env\rmv.env.bat && ..env\run.local.env.bat && npx playwright test test-suites/LoginTestSuite.spec.ts:6 --headed --project=chromium" failed: [2mRunning [22m1[2m test using [22m1[2m worker[22m [1A[2K[1/1] [chromium] › LoginTestSuite.spec.ts:6:1 › NewincidentreportformTestCase [1A[2K[2m[chromium] › LoginTestSuite.spec.ts:6:1 › NewincidentreportformTestCase[22m Saved screenshot to C:\Users\DELL\Documents\zm-claim-mv-01-tests.quan.hang\src\output-code\test-results\screenshots\LoginTestSuite_NewincidentreportformTestCase_error.png [1A[2KSave video retain-on-failure timedOut [1A[2K[31m 1) [chromium] › LoginTestSuite.spec.ts:6:1 › NewincidentreportformTestCase [2m───────────────────────[22m[39m [31mTest timeout of 30000ms exceeded.[39m Error: locator.fill: Page closed =========================== logs =========================== waiting for locator('id=incidentReportFormStepYourDetails_firstName_input') ============================================================ [90m at [39m..\test-routines\Incidentreportform\StepYourDetailsTestRoutine.ts:15 13 | const defs: PageDefinitions = new PageDefinitions(this.page); 14 | await this.delay(5000); > 15 | await defs.StepYourDetailsPage.firstNameTextInput().fill("John"); | ^ 16 | await defs.StepYourDetailsPage.lastNameTextInput().fill("Depp"); 17 | await defs.StepYourDetailsPage.contactMethodSelect().click(); 18 | await defs.StepYourDetailsPage.contactMethodSelect().press("Enter"); [2m at StepYourDetailsTestRoutineSimple.run (C:\Users\DELL\Documents\zm-claim-mv-01-tests.quan.hang\src\output-code\test-routines\Incidentreportform\StepYourDetailsTestRoutine.ts:15:55)[22m [2m at _default.run (C:\Users\DELL\Documents\zm-claim-mv-01-tests.quan.hang\src\output-code\test-cases\Claim\NewincidentreportformTestCase.ts:37:3)[22m [2m at C:\Users\DELL\Documents\zm-claim-mv-01-tests.quan.hang\src\output-code\test-suites\LoginTestSuite.spec.ts:7:2[22m [36m attachment #1: video (video/webm) [2m──────────────────────────────────────────────────────────────[22m[39m [36m test-results\LoginTestSuite-NewincidentreportformTestCase-chromium\video.webm[39m [36m [2m────────────────────────────────────────────────────────────────────────────────────────────────[22m[39m [36m attachment #2: video (video/webm) [2m──────────────────────────────────────────────────────────────[22m[39m [36m test-results\LoginTestSuite-NewincidentreportformTestCase-chromium\video-1.webm[39m [36m [2m────────────────────────────────────────────────────────────────────────────────────────────────[22m[39m [1A[2K[31m 1 failed[39m [31m [chromium] › LoginTestSuite.spec.ts:6:1 › NewincidentreportformTestCase [2m────────────────────────[22m[39m To open last HTML report run: [36m[39m [36m npx playwright show-report[39m [36m[39m