P12 - How to handle alerts in a web page using Selenium WebDriver | తెలుగు |

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 พ.ค. 2021
  • In this video, I have explained about "How to handle alerts in a web page using Selenium WebDriver".
    Webpage used for practice in this video is as follows:
    www.hyrtutorials.com/p/alerts...
    You can find the program used in this video at the below location: 👇
    bit.ly/2RvX3eU
    Selenium WebDriver is an open-source tool for automated testing of web apps across many browsers.
    WebDriver provides an API for working with the three types of native popup messages offered by JavaScript. These popups are styled by the browser and offer limited customization.
    1) Alerts (Simple Alerts)
    The simplest of all javascript popups is referred to as an alert, which shows a custom message, and a single button that dismisses the alert, labeled in most browsers as OK. It can also be dismissed in most browsers by pressing the close button, but this will always do the same thing as the OK button.
    WebDriver can get the text from the popup and accept or dismiss these alerts.
    2) Confirm (Confirmation Alerts)
    A confirm box is similar to an alert, except the user can also choose to cancel the message.
    3) Prompt (Prompt Alerts)
    Prompts are similar to confirm boxes, except they also include a text input. Similar to working with form elements, you can use WebDriver’s send keys to fill in a response. This will completely replace the placeholder text. Pressing the cancel button will not submit any text.
    The operations that we can perform on these popups using selenium are,
    1) Accept - Refers to clicking on the Ok button.
    2) Dismiss - Refers to clicking on the Cancel button.
    3) SendKeys - Refers to entering text into a textbox available in the prompt box.
    4) GetText - Refers to get the label text present on the popup box.
    ▶ Next Video link: • P13 - How to handle mu...
    ◀ Previous Video Link: • P11 - Navigation Metho...
    ↔ Selenium Java in Telugu Playlist link: bit.ly/3tL7Z9S
    ✴ Checkout my other playlists: bit.ly/3gLIAVL
    ☕ Buy me a coffee: bit.ly/33ljBWc
    👑 Join my TH-cam channel to get access to perks:👇
    / @hyrtutorials
    ==============================================
    ==============================================
    Connect us @
    🔗 Website - www.hyrtutorials.com
    🔗 Telegram - t.me/hyrtutorials
    🔗 Facebook - / hyrtutorials
    🔗 LinkedIn - / hyrtutorials
    🔗 Twitter - / hyrtutorials
    🔗 Instagram - / hyrtutorials
    ==============================================
    ==============================================
    🙏 Please Subscribe🔔 to start learning for FREE now, Also help your friends in learning the best by suggesting this channel.
    #hyrtutorials #selenium #telugu #java

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

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

    📌 Selenium Java in Telugu Playlist link: bit.ly/3tL7Z9S
    ✴ Checkout my other playlists: bit.ly/3gLIAVL
    ☕ Buy me a coffee: bit.ly/33ljBWc

  • @golthibhuvaneswari2014
    @golthibhuvaneswari2014 2 ปีที่แล้ว +10

    Tq so much sir. Very clean and clear explanation. It's our luck to learn all these things in native language. 👏👏👏

  • @rabbanishaik9257
    @rabbanishaik9257 7 หลายเดือนก่อน

    thank you Anna good explanation 👏👏👏👏👏

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

    really hats off for your way of explanation and patience.

  • @kgangadhar6495
    @kgangadhar6495 6 หลายเดือนก่อน

    Clear explanation ❤😊

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

    Very Very nice explanation. Thank you Sir

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

    Great explanation, thank you HYR!!!

  • @Multistar-456
    @Multistar-456 11 วันที่ผ่านมา

    Annaa super❤❤❤❤
    API kuda start chai anna

  • @rajithaneerugatti4373
    @rajithaneerugatti4373 2 ปีที่แล้ว +3

    Your really great brother...thank you ton❤

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

    superb Explanation..............Hats off to you

  • @user-eb3pu1qh1i
    @user-eb3pu1qh1i ปีที่แล้ว +1

    Each concept is very detailed level of explanation thank you for that sir ❤😊

    • @HYRTutorials
      @HYRTutorials  11 หลายเดือนก่อน +1

      Thanks buddy 😊

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

    Very clear and good explanation bro

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

      Thank you so much buddy 🙂

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

    I followed every vedio and great job

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

    ur way of explanation is superb in telugu...... meru cheptunte okasraiki ardam avtundi bro.... superb.. keep going.... waiting for more videos and waiting for cucumber framework bro...

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

    Explanation is very good..Easily understand

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

      Thankyou buddy

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

      Miru course nerchukunnara ? Present edina job lo unnara ?

  • @raviteja-qk3br
    @raviteja-qk3br ปีที่แล้ว +1

    Thank you Guru

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

    Thank you so much bro😊

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

    thank you sir

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

    Simply sprb sir 👍

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

    Thope bor nv edhi simple kavacchu aa explanation super brooo......

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

    Ur teaching excellent bro🥳

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

    Super Anna

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

    Superb sir

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

    Please do video on keyboard events…ur teaching is excellent sir Tnq soomuch

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

    Nice

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

    what we need to do if we have two t or more text boxes to enter data in alerts

  • @user-np2eb3ye6p
    @user-np2eb3ye6p ปีที่แล้ว

    Sir how to handle alerts/pop-ups that appear as soon as the web page load, which are code to execute . As per this video I tried to dismiss the pop-ups but no solution.
    In my case I am trying to navigate from google to zoom . As soon as google homepage load there is pop-up to signup for new account or No Thanks. Using Switchto() I am unable to action on these... any suggestions please.

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

    Super sir good explanation, if your don't mind same vedio real time HDFC bank site pina try cheyandi sir.

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

      Thankyou buddy 😊
      Nenu example ga chupinchanu so that u can do it as a practice buddy

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

    Hi Giri. Thanks for the session. How can I fetch the default/entered text in the text box in PROMPT box? Can you please provide the solution? In your example "Your name" was prepopulated, so I want to print your name available in the promt box in console?

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว +3

      You can't get the text from prompt box's textbox.
      You can enter other text by using sendkeys method which will replace the existing text in the prompt box.

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

      @@HYRTutorials Thanks Giri

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

    ❤️

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

    thank you sir,sir small doubt please clarify ' how to open developer tools?.

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

      Click on F12 key or right click on the webpage and click on inspect element.

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

      @@HYRTutorials ok

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

    Thank you for explaining, sir I have doubt,how to handle the notification bar can you suggest me

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

      What is that notification bar?

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

    hi sir, when i run alert program as usual what u said , i am unable to print fetched text from popup in console only print last outout of that action, please guide me if i did anything wrong

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

      Alert lo enter chesina text ni get cheskovadam kudaradu buddy selenium lo.
      Enter cheyyadam ithe kuduruddi but get cheskodam kudaradu

  • @kmaheshbabu3988
    @kmaheshbabu3988 3 ปีที่แล้ว +3

    Annaaa Cucumber framework gurinchi video cheyyandi broo...... Pls

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว +4

      Ippatlo ventane avvadu bro
      Idi ipoyaka cheddam

    • @pavankumar-xb7nw
      @pavankumar-xb7nw 3 ปีที่แล้ว +3

      Yes bro need one complete framework video in telugu

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว +2

      @@pavankumar-xb7nw thappakunda cheddam.
      ee course ni baaga supoort cheyyandi by sharing with your friends.
      Telugu lo cheyyadam naaku kooda interested he endukante adi mana mother tounge kaabatti but okavela kashtapadi videos chesaka adi proper ga audiance ki reach avvakapothe chesina time waste kada.

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว

      @@pavankumar-xb7nw And also kindly support the channel by joining the membership program.
      Here is the link:
      th-cam.com/channels/zFPWBdClpZ9afmmyhho4Rg.htmljoin

  • @user-uy5oh7mo9o
    @user-uy5oh7mo9o 7 หลายเดือนก่อน

    meru me website meda kakunda vere webpage lo try chesi chupinchandi.please

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

    What if there are two text boxes in the prompt alert, Can we enter value in the second text box?

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

      If there are two textboxes then that is not actually a javascript based alert.
      It might be a authentication pop-up

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

      @@HYRTutorials ok, thanks for the clarification 👍.

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

    Good example HDFC bank. .nice session...Yadagiri.
    Small doubt..how can we clear (or) capture the default text in the prompt Text box..?
    For Eg., ur name is displaying by default in prompt box..!

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว +2

      Thankyou Ayyappa.
      We can't clear or get the text out of that prompt box.
      but when you try to enter any other text then automatically it clears internally.
      may be you don't see that in the UI but try giving some other text in that and check the label.
      And if you want to clear then u can send an empty text to that prompt.

    • @AyyAppA_009
      @AyyAppA_009 3 ปีที่แล้ว

      @@HYRTutorials I tried with empty text(" ") in prompt box to clear , this one also not working..may be u defined that text is static in the html page.

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

      @@AyyAppA_009 Yes, if u pass an empty string it actually clears and puts the empty text but that happens in the backend. u don't c that change in the prompt box immediately but when you look at the result label then you can understand that it is clearing.

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

    Hi Yadagiri, I'm frequently getting the error 'element click intercepted: Element ... is not clickable at point' . Can u pls help

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

      Is there any popup or any other element displayed on top of that button?

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

      @@HYRTutorials yes Advertisement is coming. How to solve ?

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

      The add will have some option to close ryt. just inspect that and provide that info in selenium to close that add

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

      @@HYRTutorials THNQ so much guruji.. you will have an answer for our every question😃. my issue also got resolved . once again thnq so much🙏

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

    Bro small doubt, alert box operartions(like after clicking the alert button or after entering the text in prompt box) thread.sleep use chestuntey program execute ayyetapudu dani mundhu step lone program agipotundhi
    error ravataledhu kani testing mudhuku velatledhu antha sepu ayyina same chupistundhi
    nenu timing kuda just 3000 istuna
    yela andhuku jarugutundho kochem explain cheyandana
    malli alert box operations middle lo thread.sleep remove cheysaka
    program is executing successfully without any issues

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

      That's strange.
      Thread.sleep will only keep our currently executing thread in sleep mode.
      It shouldn't fail the program.

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

      @@HYRTutorials Actually it's not even showing as a fail or error anna,
      I think it's not coming out from the sleep mode

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

      @@tejadc922 if you are very much sure about the issue, then create the issue in selenium GitHub.
      They will take a look and fix it.

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

      Bro I am also having problem

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

    Hi Giri garu, I want to see the changed text in prompt text box. For that I used "driver.switchTo().alert().wait(3000);" after using "driver.switchTo().alert().sendKeys()" but my program is ended with Exception " java.lang.IllegalMonitorStateException". Could you help me to resolve this and view the entered text in prompt text box?

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

      We can't see the changed text visually buddy.
      But If you wish to verify then you can get the text after entering and assert that text

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

      @@HYRTutorials you might hardcoded somewhere. okay got it and thank you 🙂

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

      @@nagakohidha3140 yes buddy

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

      @@nagakohidha3140 yes buddy I have set that text as default text. But even if I don't set that text also, we can't see the updated text in the UI

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

      @@HYRTutorials Can you explain me even if you don't set the default text why we cannot see the text in UI? also plz explain me the use of "alert().wait()" method?

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

    sir is there any mterial (notes) on selenium java for studying

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

      Nothing of such is prepared buddy

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

    Anna selenium use chesi button click avutundi kani perform avvadamledu(means next process em ledu) console lo error kuda chupinchadam ledu

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

      Are you usre it is clicking?
      Sometimes it wont throw any exception even though it is unable to click.
      So try using javascript clicking once and check

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

      I used with java script also, while using java script it not even going to button place

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

      @@jeevankumar8565 ohh that's bad.
      If possible record a video and send me on hyadagirireddytutorials@gmail.com

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

    right now i am switching to software field from other,is selenium is better course to learn,please suggest.

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

      Any course is better only buddy.
      Manam nerchukune course ni baaga nerchukovali.
      Selenium meeda chala jobs unnai but baaga nerchukunte job thechukodam easy avthundi

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

      @@HYRTutorials ok thank you sir

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

    JavaScript alerts and Notifications Alerts are same are different

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

      Both are different buddy

  • @user-ko2bn1ni6i
    @user-ko2bn1ni6i 5 หลายเดือนก่อน

    Meeru Saraswathi devi putrudu sir

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

    Sir please explain automation frameworks in telugu sir

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

    Bro can I get all codes which youve explained in video as files

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

      You can get the code from the below website buddy
      www.hyrtutorials.com/search/label/Selenium
      Open any video and you can see the code that is used in that video

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

      Did you find the codes buddy?

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

      @@HYRTutorials yeah I got 'em 👍 Thank you!

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

      Oh super

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

      @@HYRTutorials I am non -IT and have zero knowledge about programming but your explanation made easier to understand the program language.

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

    Hii bro...
    Selenium cheskundam ani ankutuna future ala undapotumdi ...bro selenium mida...
    Pls suggest

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว +2

      Nenu jyothishyunni kaadu bro 😁
      Oorke joke chesa le kaani
      Selenium ki future ithe baagane untadi bro daantlo elanti doubt ledu.
      Kaani just selenium nerchukunte no use bro
      Selenium tho paatu testng,maven,Jenkins, cucumber ila inkonni nerchukunte baaguntadi

    • @ramakrish5647
      @ramakrish5647 3 ปีที่แล้ว

      @@HYRTutorials surega bro and thanks meru amyna support cheyagalara ??
      Not for free seriously 😀
      Paid classes and certified varaku

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว

      Support learning lona or work lona bro?

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

      @@HYRTutorials learing first iyte after that we discuss on that am antav bro

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

      is possible share ur number to discussn