Which of the following will assert for the element not to be present on the page?

  1. element(by.css('#abc').isPresent()).toBe(true)
  2. element(by.css('#abc').isPresent()).not.toBe(true)
  3. element(by.css('#abc').isPresent()==true).toBeTruthy()
  4. element(by.css('#abc').isPresent()==true).toBeFalsy()
  5. element(by.css('#abc').isPresent()==true).not.toBeTruthy()

1,2,4,5

2,4,5

1,3,4

2,3,5

Correct Option - b

To get all Infosys Certified Java Script Protractor Tester Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in