#41: Create an Appointment via a Calendar
Select a single time slot to create an appointment on FullCalendar.
Learning Objectives
Drive FullCalendar
WhenWise uses FullCalendar, a popular library for showing appointments/bookings.Review of
driver.find_elements
and List concept
there are two main statements in Selenium,driver.find_element
anddriver.find_elements
. It is OK to treat them as one as the syntax followed is the same. The only difference is the returned result:
-find_element
returns the first matching element
-find_elements
returns an array (aka. list) of matching elements
Test Case #41
Test data:
SiteURL: https://whenwise.agileway.net
User login: “yoga@biz.com”, password: “test01”
Tasks
Click a time slot on FullCalendar
A wrong attempt by an attendee during the training was to click the 10am row’s cell:
driver.find_element(:xpath, "//tr/td[@class='fc-widget-content']/span[text()='10am']").click
Keep reading with a 7-day free trial
Subscribe to AgileWay’s Test Automation & Continuous Testing Blog to keep reading this post and get 7 days of free access to the full post archives.