from selenium.webdriver.common.by import By

class LearningCircleCreationPageLocators(object):
    FIRST_COURSE_BUTTON = (By.CSS_SELECTOR, ".result-item:nth-child(1) button")
    FIRST_COURSE_TITLE = (By.CSS_SELECTOR, ".result-item .title")
    REMOVE_COURSE_SELECTION_LINK = (By.LINK_TEXT, "Remove selection")
    NEXT_TAB_BUTTON = (By.CSS_SELECTOR, ".action-bar button.next-tab")
    CITY_SELECT = (By.CSS_SELECTOR, ".city-select input")
    CITY_SELECT_INPUT = (By.CSS_SELECTOR, ".city-select input")
    CITY_SELECT_OPTION = (By.CSS_SELECTOR, ".city-select .place-select__option")
    TAB_1 = (By.CSS_SELECTOR, "#react-tabs-0")
    TAB_1_TITLE = (By.CSS_SELECTOR, "#react-tabs-1 h4")
    TAB_2 = (By.CSS_SELECTOR, "#react-tabs-2")
    TAB_2_TITLE = (By.CSS_SELECTOR, "#react-tabs-3 h4")
    TAB_3 = (By.CSS_SELECTOR, "#react-tabs-4")
    TAB_3_TITLE = (By.CSS_SELECTOR, "#react-tabs-5 h4")
    TAB_4 = (By.CSS_SELECTOR, "#react-tabs-6")
    TAB_4_TITLE = (By.CSS_SELECTOR, "#react-tabs-7 h4")
    TAB_5 = (By.CSS_SELECTOR, "#react-tabs-8")
    TAB_5_TITLE = (By.CSS_SELECTOR, "#react-tabs-9 h4")
    VENUE_NAME_FIELD = (By.ID, "venue_name")
    VENUE_DETAILS_FIELD = (By.ID, "venue_details")
    VENUE_ADDRESS_FIELD = (By.ID, "venue_address")
    START_DATE_FIELD = (By.ID, "start_date")
    MEETING_COUNT_FIELD = (By.ID, "meeting_count")
    MEETING_TIME_FIELD = (By.CSS_SELECTOR, "#meeting_time input")
    MEETING_END_TIME_FIELD = (By.CSS_SELECTOR, "#meeting_end_time input")
    TITLE_FIELD = (By.ID, "name")
    DESCRIPTION_FIELD = (By.ID, "description_ifr")
    COURSE_DESCRIPTION_FIELD = (By.ID, "course_description_ifr")
    SIGNUP_QUESTION_FIELD = (By.ID, "signup_question")
    VENUE_WEBSITE_FIELD = (By.ID, "venue_website")
    FACILITATOR_GOAL_FIELD = (By.ID, "facilitator_goal")
    FACILITATOR_CONCERNS_FIELD = (By.ID, "facilitator_concerns")
    SUCCESS_ALERT = (By.CSS_SELECTOR, ".alert.alert-success")
    DANGER_ALERT = (By.CSS_SELECTOR, ".alert.alert-danger")
    ALERT_CLOSE_BUTTON = (By.CSS_SELECTOR, ".alert.alert-dismissible .btn-close")

    COURSE_CARDS = (By.CSS_SELECTOR, "#react-tabs-1 .search-results .course")
    PUBLISH_BUTTON = (By.CSS_SELECTOR, ".action-bar button.publish")
    SAVE_BUTTON = (By.CSS_SELECTOR, ".action-bar button.save")
    MODAL_BUTTON = (By.ID, "recurrence-modal-btn")
    SCHEDULE_MEETINGS_BUTTON = (By.ID, "schedule-meetings-btn")
    ERROR_MESSAGE = (By.CSS_SELECTOR, ".error-message.minicaps")
    TINYMCE_FIELD = (By.ID, "tinymce")
    CALENDAR_TODAY = (By.CSS_SELECTOR, ".DayPicker-Day--today")
    ACCEPT_SUGGESTED_DATES_BUTTON = (By.ID, "accept-suggestions-btn")


class RegistrationModalLocators(object):
    REGISTRATION_MODAL = (By.CSS_SELECTOR, ".registration-modal")
    REGISTRATION_MODAL_TITLE = (By.CSS_SELECTOR, ".registration-modal-content h4")
    MODAL_OVERLAY = (By.CSS_SELECTOR, ".modal-overlay")
    EMAIL_FIELD = (By.ID, "email")
    PASSWORD_FIELD = (By.ID, "password")
    SUBMIT_BUTTON = (By.CSS_SELECTOR, ".modal-actions button[type=submit]")


@@ -134,27 +134,22 @@
 CTOR, %22.
-result-item
+course
 :nth-chi
@@ -154,22 +154,34 @@
 hild(1) 
-button
+a.btn:nth-child(2)
 %22)%0A    F
@@ -224,21 +224,34 @@
 , %22.
-result-item .
+course:nth-child(1) .card-
 titl

Update page locators for embedded course search