• Slider Banner

    Prepare for

    Technical Interview

    Over .1 Million+ Interview Questions for different profiles

    Read More
  • Slider Banner

    Join the

    Programming World

    Learn about top programming languages, tools and frameworks.

    Read More
  • Slider Banner

    Prepare with

    Certification MCQ

    Practice for certification from 1000+ multiple choice questions.

    Read More

What will be the output of below Java code?

Example Code: 

public class Test
    public static void main(String [] args)
    public static void dm()

    public static void dm1()
        System.out.println(" Vinay");

Output: Vinay Exception in thread "main" java.lang.ArithmeticException: / by zero

Why Instagram is important in Social Media Marketing and How it can help Your Business?

Instagram is Video and Photo sharing Social Networking platform with various filters, and organized with tags and location information.
People come to Instagram to be inspired and discover things they care about and include content from brands and business.Users can browse other users' content by tags and locations, and view trending content. 

Instagram has over 500 million active monthly users. And instagram users have shared over 40 billion photos till date and share an average of 95 million photos and videos per day. So it can surely help to grow your business and to convert leads in to paid clients.

1 Million+ advertisers use Instagram worldwide to share their stories and drive business results. Also 75% of instagrammers take action after being inspired by a post. And 1/3rd of the most viewed stories are from businesses. 
Outstanding ads that will invite your audience and convince them to take action for buying your product and services. Entrepreneurs and Most of the big companies use Instagram to promote their products and to establish a relationship with user day by day. 60% of people say they discover new products on Instagram. That's why instagram helps to grow business.

What are the browsers supported by Protractor?

Protractor supports the two latest major versions of Chrome, Firefox, Safari, and IE. These are used in Protractor's own suite of tests. You can view the current status on Travis.

Note that because Protractor uses WebDriver to drive browsers, any issues with WebDriver implementations (such as FireFoxDriver, ChromeDriver, and IEDriver) will show up in Protractor. The chart below links to major known issues. You can search through all WebDriver issues at the Selenium issue tracker.

Driver Support
ChromeDriver Yes
FirefoxDriver* Yes
SafariDriver Yes
IEDriver Yes
OperaDriver No
ios-Driver No
Appium - iOS/Safari Yes**
Appium - Android/Chrome Yes**
Selendroid Yes**
PhantomJS / GhostDriver *

(*) WebDriver support fr Firefox has changed recently, and FireFox version 48 does not work properly with the current tools. For the moment, we recommend testing against FireFox 47. In future releases, support for WebDriver via Mozilla's Marionette project will be available.

(**) These drivers are not yet in the Protractor smoke tests.

(*) We recommend against using PhantomJS for tests with Protractor. There are many reported issues with PhantomJS crashing and behaving differently from real browsers.

How do you find Angular on your page?

Open chrome devtools or firefox and find if "angular" is defined. For AngularJS apps, the "angular" variable is expected to be available in the global context.

Note: Check your version of Angular is upgraded – Protractor supports Angular and AngularJS 1.0.6/1.1.4 and higher.

How to verify whether an element is enabled or not?

To verify whether an element is enabled or not, we use isEnabled() method in Protractor. isEnabled() method returns a Boolean value based on the state of the element. It returns true if the element is enabled and false if the element is not enabled.

How to cancel Alert in Protractor?

By using dismiss() method of Alerts class, we cancel or close alerts in Protractor.

Note: We have to switch the control to the alert using switchTo().alert() before cancel the alert.

Subscribe to