Part 9: Cypress E2E Web Automation | Interacting with Elements | Alerts

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ม.ค. 2025

ความคิดเห็น • 42

  • @Sickofsick9
    @Sickofsick9 ปีที่แล้ว +11

    Providing such a high quality trainings for free is unbelievable) Hope you are living your best life for such kindness! THANK YOU!

    • @sdetpavan
      @sdetpavan  ปีที่แล้ว

      You're so welcome!

  • @josephukraine
    @josephukraine 2 ปีที่แล้ว +1

    You made Cypress very understandable. You are the best.

  • @arreddypala5058
    @arreddypala5058 2 ปีที่แล้ว +1

    Great explanation. Making cypress easy to understand. Waiting for the next video on cypress. Thank u sir for providing such a great content.

    • @sdetpavan
      @sdetpavan  2 ปีที่แล้ว

      Keep watching

  • @nisha1525
    @nisha1525 2 ปีที่แล้ว +1

    Really appreciate the way you explain each concept! Thank you so much!

    • @sdetpavan
      @sdetpavan  ปีที่แล้ว

      You're very welcome

  • @jaminDNB
    @jaminDNB ปีที่แล้ว +1

    Great job, thank you for the content 😉

  • @SineQuaNon1
    @SineQuaNon1 3 หลายเดือนก่อน +1

    Thanks for this great video.

    • @sdetpavan
      @sdetpavan  3 หลายเดือนก่อน

      My pleasure!

  • @swapnilrathod4910
    @swapnilrathod4910 2 ปีที่แล้ว +1

    sir u r teaching is too good ..

  • @Leader977
    @Leader977 ปีที่แล้ว

    Very helpful video. Thank you!

  • @raviteja4036
    @raviteja4036 ปีที่แล้ว

    First of all thanks for the good work that you are doing sir. You are making the concepts of testing easy for anyone to understand. Also Sir I have one small query on clearing the errors related to CORS error while loading the page. I have gone through lot of documentation but nothing helped except introducing an exception concept. Can you explain why this error will come and how to clear this error

  • @Edwin-ri8xu
    @Edwin-ri8xu ปีที่แล้ว +1

    Great job, for the Javascript prompt alert where cancel is clicked, the controller should return ''null" instead of welcome
    cy.window().then((win) => {
    cy.stub(win, 'prompt').returns('null')

    • @couplescoast2823
      @couplescoast2823 10 หลายเดือนก่อน +1

      Dear Edwin, I think if you pass the return value "null" to the prompt, it should always show as null. It will not reflect 100% that Cypress actually clicked the cancel button or not. It is somehow equal to: You entered a value "null" in the text field and click OK.
      Instead, I think this would be a better option:
      cy.window().then((win) => {
      cy.stub(win, 'prompt').callsFake(() => null)
      })

    • @Masheru14
      @Masheru14 5 หลายเดือนก่อน

      @@couplescoast2823 thanks brother

  • @rkrishnabe
    @rkrishnabe 2 ปีที่แล้ว

    Your explain very well sir you did a great job like freely provide videos. Why we can write like success mesg validate same as alert window? 🤔

  • @softwaretestinglearninghub
    @softwaretestinglearninghub 2 ปีที่แล้ว +1

    Great video! Thank you!

    • @sdetpavan
      @sdetpavan  2 ปีที่แล้ว

      You are welcome!

  • @fredierickmarjuy443
    @fredierickmarjuy443 ปีที่แล้ว

    how do you solve document not focused error?

  • @tahirmehmood6025
    @tahirmehmood6025 ปีที่แล้ว

    first thanks for this amazing series sir , somehow sir 33:58 you left cancel of prompt along with ok

  • @irfandy4hmad
    @irfandy4hmad 2 ปีที่แล้ว

    hi sir, for number 3 - Javascript Prompt Alert
    how do we click "Cancel" button after entering the text?

    • @ujanshakya1862
      @ujanshakya1862 2 ปีที่แล้ว

      we can use the Cypress callsFake method and then return null which tells cypress we want to cancel prompt.

    • @yuema8188
      @yuema8188 2 ปีที่แล้ว

      @@ujanshakya1862 can you please share some code snippet of that part?
      I tried with
      cy.window().then((win) => {
      cy.stub(win, 'prompt').returns('something').callsFake(() => {
      return false
      })
      })
      it does not work. any ideas?

    • @susmithavenkatesh7802
      @susmithavenkatesh7802 ปีที่แล้ว

      @@ujanshakya1862 it is also not working for me cy.visit("the-internet.herokuapp.com/javascript_alerts")
      cy.get("button[onclick='jsPrompt()']").click()
      //cancel prompt not working
      cy.stub(window, 'prompt').callsFake(() => null)
      cy.get('#result').should('have.text','You entered: null')

  • @swethareddy7073
    @swethareddy7073 2 ปีที่แล้ว

    Hello sir can u provide the document of manual testing test cases sheets.

  • @swethareddy7073
    @swethareddy7073 2 ปีที่แล้ว +1

    Sir can u provide the manual testing test cases link

    • @sdetpavan
      @sdetpavan  2 ปีที่แล้ว +1

      www.pavantestingtools.com/p/manual-testing-project.html

  • @mahimakshankar7385
    @mahimakshankar7385 5 หลายเดือนก่อน

    can anybody tell ,how to get selector hub? which key have to use?

    • @Rupeshmahat-t1d
      @Rupeshmahat-t1d 5 หลายเดือนก่อน

      search in extension and add it

  • @yuema8188
    @yuema8188 2 ปีที่แล้ว +1

    You made an error in the #3 step which null with cancel button case, it should be discussed but you just skipped!

  • @russellazim6589
    @russellazim6589 ปีที่แล้ว

    can you provide the testing source code which you are doing.

  • @SajedaParween-xz8lo
    @SajedaParween-xz8lo 2 ปีที่แล้ว

    Hello Sir, I am interested in learning JavaScript course for automation purpose not for development. i am learning Cypress from your videos but i am not good at JavaScript. kindly share me link please

  • @MdAl-amin-si4wv
    @MdAl-amin-si4wv ปีที่แล้ว

    please give here your git repo link

  • @JawidAhmadNoori
    @JawidAhmadNoori 2 ปีที่แล้ว

    Hi sir, can we get the gitHub repo link for the code of this tutorial

  • @hafizsyedzainulabdin3900
    @hafizsyedzainulabdin3900 ปีที่แล้ว

    // JS prompt text validation code
    cy.window().then((win) => {

    expect(win.prompt.args[0][0]).to.include('I am a JS prompt');
    });