© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
S. ShuklaThe Protractor Handbookhttps://doi.org/10.1007/978-1-4842-7289-3_6

6. Web Page Interactions III

Shashank Shukla1  
(1)
Mandla, Madhya Pradesh, India
 
This chapter wraps up all the remaining Protractor APIs that perform respective user actions. You will learn the following:
  • Uploading a file and submitting a form

  • Getting the location of an element

  • Handling drop-downs

  • Dragging and dropping

  • Mouse-hovering actions

  • Executing scripts

  • Switching between frames and tabs

  • Handling alerts

  • Getting an element’s ID, attribute, tag name, and CSS property

Uploading a File

There are scenarios where you need to upload a file on a web page, as shown in Figure 6-1. Protractor provides ...

Get The Protractor Handbook: Understanding and Implementing the Tool Effectively now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.