The Agile Way

The Agile Way

Share this post

The Agile Way
The Agile Way
#44: Moving an Appointment
Selenium Training Workbook

#44: Moving an Appointment

Use Selenium WebDriver’s Drag and Drop Advanced User Interactions API to move calendar appointments.

Courtney Zhan's avatar
Courtney Zhan
Jun 26, 2024
∙ Paid
1

Share this post

The Agile Way
The Agile Way
#44: Moving an Appointment
Share

Learning Objectives

  • Drive Full Calendar
    This continues our tour of FullCalendar a popular calendar library that started in Exercise 41.

  • Review of Advanced Interactions and learning a new interaction — Mouse Drag and Drop.

  • Review XPath and using XPath parent nodes to find specific elements.

Test Case 44

Test Design

  • Create an appointment for a resource, (e.g. Jet Li).

  • Using the mouse, drag the appointment and drop it into another resource’s calendar on the same page (e.g. Donny Yen).

  • Confirm the booking should be moved (modal pop-up).

  • Confirm that the booking was successfully moved.

Test Data (Login) :

Site URL: https://whenwise.agileway.net
Login: yoga@biz.com
Password: test01

Tasks

Task 1. Create an appointment booking

This is the same as Exercise 41, you can copy that same script here if you wish.

login("yoga@biz.com", "test01")
visit("/calendar")
cells = driver.find_elements(:xpath, "//tr/td[@class='fc-widget-content']")
cells[8].click
try_for(2) { driver.find_element(:name, "event[title]").send_keys("BuildWise is even Cooler") }
driver.find_element(:id, "create_calendar_appointment_button").click
try_for(2) { expect(page_text).to include("BuildWise is even Cooler") }

Keep reading with a 7-day free trial

Subscribe to The Agile Way to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Zhimin Zhan
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share