#10 - Open Browser without Incognito Mode (Normal Mode) with Playwright

Ғылым және технология

In this video, I have explained how to open Browser without Incognito Mode (Normal Mode) with Playwright using launch Persistent Context.
Schedule a meeting in case of any queries/guidance/counselling:
calendly.com/naveenautomation...
~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
kzread.info%20Au...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/9FrG-KzGlvxjNmQ1
Naveen AutomationLabs Paid Courses:
GIT Hub Course:
naveenautomationlabs.com/gitc...
Java & Selenium:
naveenautomationlabs.com/sele...
Java & API +POSTMAN + RestAssured + HttpClient:
naveenautomationlabs.com/manu...

Пікірлер: 10

  • @rajeshnaidu2527
    @rajeshnaidu2527Ай бұрын

    @naveen can we record in non-incognito mode. if so can you let me know how can we

  • @selvaganapathye4999
    @selvaganapathye49992 ай бұрын

    Hi Naveen can u help me how to replicate the same method via playwright java i tried but getting errors at launchpersistentcontext

  • @sumitgoyal385
    @sumitgoyal3853 ай бұрын

    Hi Naveen thanx, I have a question here If I use await the code is working but If I apply other approach using then it is not working please help waiting for ur reply :) await page.locator("//div[@class='example']/h3").textContent(); //works page.locator("//div[@class='example']/h3").textContent().then((data)=>{ console.log("value is ="+data); });

  • @naveenautomationlabs

    @naveenautomationlabs

    3 ай бұрын

    with .then(), the callback function is executed asynchronously when the promise is resolved, and there might be a timing issue where the text content is not yet available when the callback function is executed. So avoid using chaining with then(). Always use await for the right sychronization.

  • @sumitgoyal385

    @sumitgoyal385

    3 ай бұрын

    @@naveenautomationlabs thanks for your response Actually I put await before it and it worked ,the reason I used then is I was trying to relate few things related to promise

  • @naveenautomationlabs

    @naveenautomationlabs

    3 ай бұрын

    Yes use await and use catch also in order to capture the error if element is not found.

  • @user-wc4hb4zb1b
    @user-wc4hb4zb1b3 ай бұрын

    please can you tell us, How to open Edge in IE mode using playwright?

  • @tranthinhqnam

    @tranthinhqnam

    2 ай бұрын

    const { chromium } = require('playwright'); (async () => { const browser = await chromium.launch(); const context = await browser.newContext({ userAgent: 'Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; AS; rv:11.0) like Gecko', viewport: { width: 1366, height: 768 }, extraHTTPHeaders: { 'Accept-Language': 'en-US,en;q=0.9' }, bypassCSP: true, isMobile: false, javaScriptEnabled: true, ignoreHTTPSErrors: true, locale: 'en-US', geolocation: { longitude: 0, latitude: 0 }, permissions: ['geolocation'], timezoneId: 'UTC', colorScheme: 'light', acceptDownloads: true, // Enable the 'msie' flag to open Edge in IE mode args: ['--msie'] }); const page = await context.newPage(); await page.goto('example.com'); // Continue with your testing or automation tasks await browser.close(); })();

  • @SmitaVishwasPatil
    @SmitaVishwasPatil3 ай бұрын

    Hi Naveen ... I want join your classes...how I can join it

  • @naveenautomationlabs

    @naveenautomationlabs

    3 ай бұрын

    Please check the details here : naveenautomationlabs.com/selenium-training-batch/ You can enroll for it from here.

Келесі