Forum 2.0

Replies

  • There are basically two types of alerts/pop-ups used in automation testing by software testing services

    1. Web-based alert pop-ups
    2. Windows-based alert pop-ups

    What is Alert box/ Pop up box/:

    Alert or pop-up is a small box which appears on the display to give some kind of information:

    There are basically four methods which are used to handle the pop-up:

    1) void dismiss() – The dismiss() method is used clicks on the “Cancel” button
    2) void accept() – The accept() method is used clicks on the “Ok” button
    3) String getText() – The getText() method returns the text displayed on the pop-up box.
    4) void sendKeys(String stringToSend) – The sendKeys() method enters the specified string pattern into the pop-up box.

    Alert alert = driver.switchTo().alert();
    alert.accept();
    driver.switchTo().alert().dismiss();
    driver.switchTo().alert().accept();

    The Best Software Testing Services Company - QASource
    Partner with the leading software testing company, QASource, and accomplish all your software testing goals within strict deadlines and budget. We pr…
  • Web-based popup is otherwise known as server authentication popup. You can handle it by using below:

    driver.get("http://username:password@@SiteURL") ;

    Example: driver.get("http://dev:AEgbrLFw@www.mobileqazone.com/");

This reply was deleted.
    results->result as $result) { ?>
  1. jobtitle;?>
    company;?>(formattedRelativeTime;?>)city;?>, state;?>

    APPIUM

    Blockchain Testing

    Welcome to Mobile QA Zone, a Next Generation Software Testing Community.Invite your friends to join this community.Write to us to become a featured member.