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

Поделиться
HTML-код
  • Опубликовано: 9 сен 2024
  • 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.hyrtutoria...
    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 RUclips channel to get access to perks:👇
    / @hyrtutorials
    ==============================================
    ==============================================
    Connect us @
    🔗 Website - www.hyrtutoria...
    🔗 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