Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 588 Bytes

what_are_the_basic_protractor_commands_.md

File metadata and controls

20 lines (13 loc) · 588 Bytes

What are the basic Protractor commands?

Some of the basic Protractor commands include:

  • browser.get(): Navigate to a URL.
  • element(): Locate an element on the page.
  • element(by.css()): Locate an element using a CSS selector.
  • browser.sleep(): Pause execution for a specified time.

Example:

browser.get('http://example.com');
let elem = element(by.id('username'));

Tags: basic, Protractor, Commands