how to Find elements dynamically with too many hierarchy using cypress - cypress
<div role="application" aria-label="Calendar" class="dayPicker dayPicker--inline dayPicker--horizontal dayPicker--withBorder dayPicker--focusedStartDate" style="width: 619px;"><div><div class="" style="width: 618px;"><div class="dayPicker__weekHeaders dayPicker__weekHeaders--horizontal" aria-hidden="true" role="presentation"><div class="dayPicker__weekHeader dayPicker__weekHeader--double" style="left: 14px;"><ul class="weekHeader__container"><li class="weekHeader__list" style="width: 39px;"><small>Mo</small></li><li class="weekHeader__list" style="width: 39px;"><small>Tu</small></li><li class="weekHeader__list" style="width: 39px;"><small>We</small></li><li class="weekHeader__list" style="width: 39px;"><small>Th</small></li><li class="weekHeader__list" style="width: 39px;"><small>Fr</small></li><li class="weekHeader__list" style="width: 39px;"><small>Sa</small></li><li class="weekHeader__list" style="width: 39px;"><small>Su</small></li></ul></div><div class="dayPicker__weekHeader dayPicker__weekHeader--double" style="left: 314px;"><ul class="weekHeader__container"><li class="weekHeader__list" style="width: 39px;"><small>Mo</small></li><li class="weekHeader__list" style="width: 39px;"><small>Tu</small></li><li class="weekHeader__list" style="width: 39px;"><small>We</small></li><li class="weekHeader__list" style="width: 39px;"><small>Th</small></li><li class="weekHeader__list" style="width: 39px;"><small>Fr</small></li><li class="weekHeader__list" style="width: 39px;"><small>Sa</small></li><li class="weekHeader__list" style="width: 39px;"><small>Su</small></li></ul></div></div><div class="dayPicker__focusRegion" role="region" tabindex="-1"><div class="dayPickerNavigation dayPickerNavigation--horizontal"><div role="button" tabindex="0" class="dayPickerNavigation_button dayPickerNavigation__button--default dayPickerNavigation__button--disabled dayPickerNavigation__button--horizontalDefault dayPickerNavigation__leftButton--horizontalDefault" aria-disabled="true" aria-label="Move backward to switch to the previous month."><div class="prev-month"></div></div><div role="button" tabindex="0" class="dayPickerNavigation__button dayPickerNavigation__button--default dayPickerNavigation__button--horizontalDefault dayPickerNavigation__rightButton--horizontalDefault" aria-label="Move forward to switch to the next month."><div class="next-month"></div></div></div><div class="dayPicker__transitionContainer dayPicker__transitionContainer--horizontal" style="width: 618px; height: 327px;"><div class="calendarMonthGrid calendarMonthGrid--horizontal calendarMonthGrid--double" style="transform: translateX(0px); width: 1200px;"><div class="calendarMonthGrid__month--horizontal calendarMonthGrid__month--hideForAnimation calendarMonthGrid__month--hidden"><div class="calendarMonth" data-visible="false" style="padding: 0px 13px;"><div class="calendarMonth__caption"><span>August 2022</span></div><div class="calendarMonth__container"><table class="calendarMonth__table" role="presentation" style="width: 100%;"><tbody><tr><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange calendarDay--firstDayOfWeek" role="button" aria-label="Not available. Monday, August 1, 2022" tabindex="-1" style="width: 39px; height: 38px;">1</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Tuesday, August 2, 2022" tabindex="-1" style="width: 39px; height: 38px;">2</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Wednesday, August 3, 2022" tabindex="-1" style="width: 39px; height: 38px;">3</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Thursday, August 4, 2022" tabindex="-1" style="width: 39px; height: 38px;">4</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Friday, August 5, 2022" tabindex="-1" style="width: 39px; height: 38px;">5</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Saturday, August 6, 2022" tabindex="-1" style="width: 39px; height: 38px;">6</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange calendarDay--lastDayOfWeek" role="button" aria-label="Not available. Sunday, August 7, 2022" tabindex="-1" style="width: 39px; height: 38px;">7</td></tr><tr><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange calendarDay--firstDayOfWeek" role="button" aria-label="Not available. Monday, August 8, 2022" tabindex="-1" style="width: 39px; height: 38px;">8</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Tuesday, August 9, 2022" tabindex="-1" style="width: 39px; height: 38px;">9</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Wednesday, August 10, 2022" tabindex="-1" style="width: 39px; height: 38px;">10</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Thursday, August 11, 2022" tabindex="-1" style="width: 39px; height: 38px;">11</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Friday, August 12, 2022" tabindex="-1" style="width: 39px; height: 38px;">12</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Saturday, August 13, 2022" tabindex="-1" style="width: 39px; height: 38px;">13</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange calendarDay--lastDayOfWeek" role="button" aria-label="Not available. Sunday, August 14, 2022" tabindex="-1" style="width: 39px; height: 38px;">14</td></tr><tr><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange calendarDay--firstDayOfWeek" role="button" aria-label="Not available. Monday, August 15, 2022" tabindex="-1" style="width: 39px; height: 38px;">15</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Tuesday, August 16, 2022" tabindex="-1" style="width: 39px; height: 38px;">16</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Wednesday, August 17, 2022" tabindex="-1" style="width: 39px; height: 38px;">17</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Thursday, August 18, 2022" tabindex="-1" style="width: 39px; height: 38px;">18</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Friday, August 19, 2022" tabindex="-1" style="width: 39px; height: 38px;">19</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Saturday, August 20, 2022" tabindex="-1" style="width: 39px; height: 38px;">20</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange calendarDay--lastDayOfWeek" role="button" aria-label="Not available. Sunday, August 21, 2022" tabindex="-1" style="width: 39px; height: 38px;">21</td></tr><tr><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange calendarDay--firstDayOfWeek" role="button" aria-label="Not available. Monday, August 22, 2022" tabindex="-1" style="width: 39px; height: 38px;">22</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Tuesday, August 23, 2022" tabindex="-1" style="width: 39px; height: 38px;">23</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Wednesday, August 24, 2022" tabindex="-1" style="width: 39px; height: 38px;">24</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Thursday, August 25, 2022" tabindex="-1" style="width: 39px; height: 38px;">25</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Friday, August 26, 2022" tabindex="-1" style="width: 39px; height: 38px;">26</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Saturday, August 27, 2022" tabindex="-1" style="width: 39px; height: 38px;">27</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange calendarDay--lastDayOfWeek" role="button" aria-label="Not available. Sunday, August 28, 2022" tabindex="-1" style="width: 39px; height: 38px;">28</td></tr><tr><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange calendarDay--firstDayOfWeek" role="button" aria-label="Not available. Monday, August 29, 2022" tabindex="-1" style="width: 39px; height: 38px;">29</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Tuesday, August 30, 2022" tabindex="-1" style="width: 39px; height: 38px;">30</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Wednesday, August 31, 2022" tabindex="-1" style="width: 39px; height: 38px;">31</td><td></td><td></td><td></td><td></td></tr></tbody></table></div></div></div><div class="calendarMonthGrid__month--horizontal"><div class="calendarMonth" data-visible="true" style="padding: 0px 13px;"><div class="calendarMonth__caption"><span>September 2022</span></div><div class="calendarMonth__container"><table class="calendarMonth__table" role="presentation" style="width: 100%;"><tbody><tr><td></td><td></td><td></td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Thursday, September 1, 2022" tabindex="-1" style="width: 39px; height: 38px;">1</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Friday, September 2, 2022" tabindex="-1" style="width: 39px; height: 38px;">2</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Saturday, September 3, 2022" tabindex="-1" style="width: 39px; height: 38px;">3</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange calendarDay--lastDayOfWeek" role="button" aria-label="Not available. Sunday, September 4, 2022" tabindex="-1" style="width: 39px; height: 38px;">4</td></tr><tr><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange calendarDay--firstDayOfWeek" role="button" aria-label="Not available. Monday, September 5, 2022" tabindex="-1" style="width: 39px; height: 38px;">5</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--defaultCursor calendarDay--blockedOutsideRange" role="button" aria-label="Not available. Tuesday, September 6, 2022" tabindex="-1" style="width: 39px; height: 38px;">6</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--today" role="button" aria-label="Choose Wednesday, September 7, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">7</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Thursday, September 8, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">8</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Friday, September 9, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">9</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Saturday, September 10, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">10</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--lastDayOfWeek" role="button" aria-label="Choose Sunday, September 11, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">11</td></tr><tr><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--firstDayOfWeek" role="button" aria-label="Choose Monday, September 12, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">12</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Tuesday, September 13, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">13</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Wednesday, September 14, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">14</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Thursday, September 15, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">15</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Friday, September 16, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">16</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--selected calendarDay--selectedSpan calendarDay--selectedStart" role="button" aria-label="Selected as start date. Saturday, September 17, 2022" tabindex="0" style="width: 39px; height: 38px;">17</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--lastDayOfWeek calendarDay--selectedSpan" role="button" aria-label="Choose Sunday, September 18, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">18</td></tr><tr><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--firstDayOfWeek calendarDay--selectedSpan" role="button" aria-label="Choose Monday, September 19, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">19</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--selectedSpan" role="button" aria-label="Choose Tuesday, September 20, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">20</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--selectedSpan" role="button" aria-label="Choose Wednesday, September 21, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">21</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--selectedSpan" role="button" aria-label="Choose Thursday, September 22, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">22</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--selectedSpan" role="button" aria-label="Choose Friday, September 23, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">23</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--selectedSpan" role="button" aria-label="Choose Saturday, September 24, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">24</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--lastDayOfWeek calendarDay--selectedSpan" role="button" aria-label="Choose Sunday, September 25, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">25</td></tr><tr><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--firstDayOfWeek calendarDay--selectedSpan" role="button" aria-label="Choose Monday, September 26, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">26</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--selectedSpan" role="button" aria-label="Choose Tuesday, September 27, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">27</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--selectedSpan" role="button" aria-label="Choose Wednesday, September 28, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">28</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--selectedSpan calendarDay--lastInRange" role="button" aria-label="Choose Thursday, September 29, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">29</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--selected calendarDay--selectedEnd" role="button" aria-label="Selected as end date. Friday, September 30, 2022" tabindex="-1" style="width: 39px; height: 38px;">30</td><td></td><td></td></tr></tbody></table></div></div></div><div class="calendarMonthGrid__month--horizontal"><div class="calendarMonth" data-visible="true" style="padding: 0px 13px;"><div class="calendarMonth__caption"><span>October 2022</span></div><div class="calendarMonth__container"><table class="calendarMonth__table" role="presentation" style="width: 100%;"><tbody><tr><td></td><td></td><td></td><td></td><td></td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Saturday, October 1, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">1</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--lastDayOfWeek" role="button" aria-label="Choose Sunday, October 2, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">2</td></tr><tr><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--firstDayOfWeek" role="button" aria-label="Choose Monday, October 3, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">3</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Tuesday, October 4, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">4</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Wednesday, October 5, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">5</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Thursday, October 6, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">6</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Friday, October 7, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">7</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Saturday, October 8, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">8</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--lastDayOfWeek" role="button" aria-label="Choose Sunday, October 9, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">9</td></tr><tr><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--firstDayOfWeek" role="button" aria-label="Choose Monday, October 10, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">10</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Tuesday, October 11, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">11</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Wednesday, October 12, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">12</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Thursday, October 13, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">13</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Friday, October 14, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">14</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Saturday, October 15, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">15</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--lastDayOfWeek" role="button" aria-label="Choose Sunday, October 16, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">16</td></tr><tr><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--firstDayOfWeek" role="button" aria-label="Choose Monday, October 17, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">17</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Tuesday, October 18, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">18</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Wednesday, October 19, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">19</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Thursday, October 20, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">20</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Friday, October 21, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">21</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Saturday, October 22, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">22</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--lastDayOfWeek" role="button" aria-label="Choose Sunday, October 23, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">23</td></tr><tr><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--firstDayOfWeek" role="button" aria-label="Choose Monday, October 24, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">24</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Tuesday, October 25, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">25</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Wednesday, October 26, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">26</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Thursday, October 27, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">27</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Friday, October 28, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">28</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme" role="button" aria-label="Choose Saturday, October 29, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">29</td><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--lastDayOfWeek" role="button" aria-label="Choose Sunday, October 30, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">30</td></tr><tr><td class="calendarDay calendarDay--default calendarDay--defaultTheme calendarDay--firstDayOfWeek" role="button" aria-label="Choose Monday, October 31, 2022 as your check-in date. It’s available." tabindex="-1" style="width: 39px; height: 38px;">31</td><td></td><td></td><td></td><td></td><td></td><td></td></tr></tbody></table></div></div></div><div class="calendarMonthGrid__month--horizontal calendarMonthGrid__month--hidden"><div class="calendarMonth" data-visible="false" style="padding: 0px 13px;"><div class="calendarMonth__caption">
This is what I get when I simply find my element
cy.xpath("//*[#id='globalSearch']//div[#aria-label='Calendar']//div[2]/div[2]/div/div[2]//div//table/tbody/tr[3]/td[1]")
how can i reduce too many static divs[] ?
If there is text you can use to limit your search, then you can use .contains().
cy.contains('.your-selector', 'text')
or regex text
cy.contains('.your-selector', /text/)
The simplest I can see (not using xpath)
cy.get('[#aria-label="Calendar"]')
.find('tbody tr:eq(3) td:eq(1)')
Related
Add a scrolling animation to a product slider ( scrollBy js)
I made a product slider using Html Css JS and I want the scrollby left and right goes smoth instead of going directly. Here is my website it works fine on the first slider but the second slider and third that have this issue Html <!-- Container for the layout of the full carousel --> <div class="container2 cover2"> <div class=" scrolling-wrapper scrollmenu-SLIDER2 scroll-images2"> <div class="card2"> <a href=" https://ma.santemagasin.com/produit/hemoconfort/"> <div class="card-img2"> <img src=" https://ma.santemagasin.com/wp-content/uploads/2022/10/hemo-confort-compr.webp"> <h5 class="Product-Disc"> مكمل طبيعي لراحة البواسير علاج مضمون من المصدر للبواسير الداخلية حل نهائي للنزيف والالم</h5> <p class="Product-Prix"> 249د.م. </p> <span class="Stars">★★★★★</span> </div> </a> </div> <div class="card2"> <a href="https://ma.santemagasin.com/produit/iron-hair/"> <div class="card-img2"> <img src="https://ma.santemagasin.com/wp-content/uploads/2022/09/iron-300x300.webp"> <h5 class="Product-Disc"> مكمل طبيعي خاص بالرجال sante magasinمن حل لتساقط الشعر ملء فراغات اللحية 60 كبسولة نباتية </h5> <p class="Product-Prix">249 د.م.</p> <span class="Stars">★★★★★</span> </div> </a> </div> <div class="card2"> <a href="https://ma.santemagasin.com/produit/vitex/"> <div class="card-img2"> <img src="https://ma.santemagasin.com/wp-content/uploads/2022/09/vtx-300x300.webp"> <h5 class="Product-Disc"> مكمل طبيعي من كف مريم للنساء ٬ الدورة الشهرية الحمل ٬ 60 كبسولة نباتية صنع مغربي٬ 300 ملغرام </h5> <p class="Product-Prix">249 د.م.</p> <span class="Stars">★★★★★</span> </div> </a> </div> <div class="card2"> <a href="https://ma.santemagasin.com/produit/perfecto/"> <div class="card-img2"> <img src="https://ma.santemagasin.com/wp-content/uploads/2022/09/prfrcto-300x300.webp"> <h5 class="Product-Disc"> مكمل طبيعي لزيادة المناطق الأنثوية بدون أضرار جانبية مستخلصات طبيعية 60 كبسولة٬ 300 ملغرام </h5> <p class="Product-Prix">249 د.م.</p> <span class="Stars">★★★★★</span> </div> </a> </div> <div class="card2"> <a href="https://ma.santemagasin.com/produit/hair-lit/"> <div class="card-img2"> <img src="https://ma.santemagasin.com/wp-content/uploads/2022/09/hair-lit-300x300.webp"> <h5 class="Product-Disc"> للنساء الشعر والاضافر تركيبة مطورة ٬ مكمل طبيعي 60 كبسولة نباتية </h5> <p class="Product-Prix">249 د.م.</p> <span class="Stars">★★★★★</span> </div> </a> </div> <div class="card2"> <a href="https://ma.santemagasin.com/produit/strong-carti/"> <div class="card-img2"> <img src="https://ma.santemagasin.com/wp-content/uploads/2022/09/strong-300x300.webp"> <h5 class="Product-Disc"> مكمل طبيعي من sante magasin حل للسياتيك والروماتيزم 60 كبسولة نباتية </h5> <p class="Product-Prix">249 د.م.</p> <span class="Stars">★★★★★</span> </div> </a> </div> <div class="card2"> <a href="https://ma.santemagasin.com/produit/pure-skin/"> <div class="card-img2"> <img src="https://ma.santemagasin.com/wp-content/uploads/2022/09/pure-skin-300x300.webp"> <h5 class="Product-Disc"> مكمل طبيعي من sante magasin بشرة صافية خالية من الشوائب والبثور 60 كبسولة نباتية </h5> <p class="Product-Prix">249 د.م.</p> <span class="Stars">★★★★★</span> </div> </a> </div> <div class="card2"> <a href="https://ma.santemagasin.com/produit/maca/"> <div class="card-img2"> <img src="https://ma.santemagasin.com/wp-content/uploads/2022/09/maca-300x300.webp"> <h5 class="Product-Disc"> مكمل طبيعي من sante magasin كبسولات جذور الماكا الطبيعية - العضوية محفز الطاقة والقوة </h5> <p class="Product-Prix">249 د.م.</p> <span class="Stars">★★★★★</span> </div> </a> </div> <div class="card2"> <a href="https://ma.santemagasin.com/produit/collagen-complex/"> <div class="card-img2"> <img src="https://ma.santemagasin.com/wp-content/uploads/2021/11/collagine-300x300.webp"> <h5 class="Product-Disc"> مكمل طبيعي من sante magasin كولاجين بحري تركيبة طبيعية 60 كبسولة نباتية </h5> <p class="Product-Prix">199 د.م.</p> <span class="Stars">★★★★★</span> </div> </a> </div> <div class="card2"> <a href="https://ma.santemagasin.com/produit/control-cholesterol/"> <div class="card-img2"> <img src="https://ma.santemagasin.com/wp-content/uploads/2022/09/bio-cholesto-300x300.webp"> <h5 class="Product-Disc"> مكمل طبيعي من sante magasin كوليسترول متوازن محاربة الدهون الثلاثية 60 كبسولة نباتية </h5> <p class="Product-Prix">249 د.م.</p> <span class="Stars">★★★★★</span> </div> </a> </div> <div class="card2"> <a href="https://ma.santemagasin.com/produit/bio-oral-complement-alimentaire/"> <div class="card-img2"> <img src="https://ma.santemagasin.com/wp-content/uploads/2022/09/bio-oral-300x300.webp"> <h5 class="Product-Disc"> مكمل لصحة الفم حل طبيعي من المصدر الرائحة الكريهة٫ اللثة 60 كبسولة نباتية </h5> <p class="Product-Prix">249 د.م.</p> <span class="Stars">★★★★★</span> </div> </a> </div> <div class="card2"> <a href="https://ma.santemagasin.com/produit/ibs-active-complement-alimentaire/"> <div class="card-img2"> <img src="https://ma.santemagasin.com/wp-content/uploads/2022/09/ibs-300x300.webp"> <h5 class="Product-Disc"> مستخلصات طبيعية 300 ملغرام - 60 كبسولة راحة الجهاز الهضمي </h5> <p class="Product-Prix">249 د.م.</p> <span class="Stars">★★★★★</span> </div> </a> </div> <div class="card2"> <a href="https://ma.santemagasin.com/produit/saw-palmetto/"> <div class="card-img2"> <img src="https://ma.santemagasin.com/wp-content/uploads/2022/09/palmetto-300x300.webp"> <h5 class="Product-Disc"> مكمل طبيعي من sante magasin للرجال - صحة البروستاتا مستخلصات طبيعية 60 كبسولة نباتية </h5> <p class="Product-Prix">249 د.م.</p> <span class="Stars">★★★★★</span> </div> </a> </div> <div class="card2"> <a href="https://ma.santemagasin.com/produit/zen-stress/"> <div class="card-img2"> <img src="https://ma.santemagasin.com/wp-content/uploads/2022/09/zen-strees-300x300.webp"> <h5 class="Product-Disc"> مكمل طبيعي مغربي من sante magasin نوم مريح - حل للتوتر العصبي 60 كبسولة نباتية </h5> <p class="Product-Prix">249 د.م.</p> <span class="Stars">★★★★★</span> </div> </a> </div> </div> </div> <div class="cover2"> <button class="left" onclick="leftScroll2()">❮</button> <button class="right" onclick="rightScroll2()">❯</button> </div> CSS .cover2 { padding: 0px 30px; position: relative; } .left { position: absolute; right: -20px; top:-170PX; background-color: transparent !important; color: #006f07 !important; font-size: 20px; font-weight: bold; border-color: grey; border-radius: 20%; } .right:hover { background-color: #006F07 !important; color: white !important; } .left:hover { background-color: #006F07 !important; color: white !important; } .right { position: absolute; left: -20px; top:-170PX; background-color: transparent !important; color: #006f07 !important; font-size: 20px; font-weight: bold; border-color: grey; border-radius: 20%; margin-left :-10px; } .scrollmenu-SLIDER2 { width: 100%; height: auto; display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; } .container2 { display: flex; overflow-x: auto; } .card2 { padding: 10px; margin: 10px; border-radius: 20px; line-height: 1.2; background-color: white; text-align: center; } .card2 img{ border-radius: 10px; } .Product-Prix{ text-decoration:none; color : #006f07; font-size: 20; font-weight: bold; margin:5px !important; } .Product-Disc{ color: #789FD6; font-size: 15px; display: -webkit-box; max-width: 200px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-align: center; padding-top: 5px; margin: auto; width: 100%; } .scroll-images { width: 100%; height: auto; display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; } .Stars{ display: flex; justify-content: center; color: orange; letter-spacing: 0.5px; font-size: 20px; } .card-img2 { width: 09rem; } ::-webkit-scrollbar { display: NONE; } #media only screen and (max-width: 800px) { .card-img2 { width: 07rem; } .card-img3 { width: 10rem; } .left , .right { display:none; } .cover2{ padding: 0px 5px; position: relative; } JS <script> function leftScroll2() { const left = document.querySelector(".scroll-images2"); left.scrollBy(2000, 0) ; } function rightScroll2() { const right = document.querySelector(".scroll-images2"); right.scrollBy(-2000, 0) ; } </script> I tried give different classes for every element than the first slider but the same problem still stop the slider from going smoothly
Bash - Read HTML & find div based on two different variables
I am trying to get information from a div based on a date that I am holding as a variable, then I am trying to filter the returned results based on another variable to narrow down the results list to a single match in order to extract the URL. Example of the HTML of the page, this will have another 10 items with the information being different. The same date may appear more than once.. <div class="bhangra-artist details "> <div class="bhangra-artist card"> <div class="bhangra-artist-title" style="text-overflow: none;"> <a href="/bhangra/artist/album/id/123456/title-of-the-album/" data-trackid="title of the album" title="Title Of The Album" style="position: relative; left: 0px;"> Title Of The Album </a> </div> <div class="artist-names"> Artist Name </div> <time> September 08, 2018 </time> <div class="release-information"> <a class="date-of-release" href="releases-today" data-trackid="releases today" title="releases today"> <span class="label-left-box">releases today</span> <span class="label-text">releases today</span> </a> <span class="label-hd "></span> </div> </div> In my script I am running DATE=$(cat html.txt | sed -n -e '/bhangra-artist card/,/<\/time>/ p' ) echo "${DATE}" This returns the below but all results so theirs about 10 matches returned.. I am simply showing example of 3. <div class="bhangra-artist card"> <div class="bhangra-artist-title" style="text-overflow: none;"> <a href="/bhangra/artist/album/id/123456/title-of-the-album/" data-trackid="title of the album" title="Title Of The Album" style="position: relative; left: 0px;"> Title Of The Album </a> </div> <div class="artist-names"> Artist Name </div> <time> September 08, 2018 </time> <div class="bhangra-artist card"> <div class="bhangra-artist-title" style="text-overflow: none;"> <a href="/bhangra/artist/album/id/123456/title-of-the-album/" data-trackid="title of the album" title="Title Of The Album" style="position: relative; left: 0px;"> Title Of The Album </a> </div> <div class="artist-names"> Name Artist </div> <time> September 08, 2018 </time> <div class="bhangra-artist card"> <div class="bhangra-artist-title" style="text-overflow: none;"> <a href="/bhangra/artist/album/id/123456/title-of-the-album/" data-trackid="title of the album" title="Title Of The Album" style="position: relative; left: 0px;"> Title Of The Album </a> </div> <div class="artist-names"> Artist1 Name & Artist2 Name </div> <time> September 05, 2018 </time> With the returned results I am now attempting to narrow them down to one result. I have a variable called $ReleaseDate which will have have value September 08, 2018 So now that ${DATE} has 10 different divs with dates I need to match all the ones containing the date in $ReleaseDate This is the part I am not sure about how to do. I'd expect the results to be narrowed down to the date variable so with the above example i'd expect the 3 results to be down to 2 results. <div class="bhangra-artist card"> <div class="bhangra-artist-title" style="text-overflow: none;"> <a href="/bhangra/artist/album/id/123456/title-of-the-album/" data-trackid="title of the album" title="Title Of The Album" style="position: relative; left: 0px;"> Title Of The Album </a> </div> <div class="artist-names"> Artist Name </div> <time> September 08, 2018 </time> <div class="bhangra-artist card"> <div class="bhangra-artist-title" style="text-overflow: none;"> <a href="/bhangra/artist/album/id/123456/title-of-the-album/" data-trackid="title of the album" title="Title Of The Album" style="position: relative; left: 0px;"> Title Of The Album </a> </div> <div class="artist-names"> Name Artist </div> <time> September 08, 2018 </time> Once I have narrowed down the results from 10 to ones matching my date variable their will be 1-3 results left. So now I need to filter this down to 1 result. I have my final variable which is $artistName This unfortunately contains "Artist Name Name Of The Album" so what I am looking to do is simply match the first word which will always be a artist name. So I am looking to match $artistName to the line "Artist Name " once this has been done I'd want the containing div and all other divs removed so that I am left with one result. <div class="bhangra-artist card"> <div class="bhangra-artist-title" style="text-overflow: none;"> <a href="/bhangra/artist/album/id/123456/title-of-the-album/" data-trackid="title of the album" title="Title Of The Album" style="position: relative; left: 0px;"> Title Of The Album </a> </div> <div class="artist-names"> Artist Name </div> <time> September 08, 2018 </time> Once I have only one result. I am attempting to get the link for this album. I believe I can target this already but I am matching it against the html so all instances as I cannot filter the divs based on variables I have. <a href="/bhangra/artist/album/id/123456/title-of-the-album/" data-trackid="title of the album" title="Title Of The Album" style="position: relative; left: 0px;"> Title Of The Album </a> End Result: /bhangra/artist/album/id/123456/title-of-the-album/ I have certain elements done but I am totally stuck on how to piece it all together. So to Recap:- My Variables and Values are:- $DATE=September 08, 2018 $artistName=Artist Name Name Of The Album The code I have so far. #!/bin/bash echo "date : ${DATE}" #This has the value September 08, 2018 echo "artist: ${artistName}" #This has the value Artist Name Name Of The Album # Get HTML and find the DIV's containing the information that is required. # GetContainer Reads the html file html.txt, using sed to target the entire bhangra artist panel until the time section. This returns 10 results. GetContainer=$(cat html.txt | sed -n -e '/bhangra-artist details/,/<\/time>/ p' ) IFS=$OIFS # Run GetContainer into another variable called filterDATE and now search this for a date retain the containing div and remove all other results. This step should take the results down from 10 results to only a handful 1-3 usually. As the the date match would only return 1-3 results in total. filterDATE=$(echo -n "$GetContainer" ) filterDATE=$(echo -n "$filterDATE" ) #Unsure how to do this so this step is blank as I am unsure how to verify the selected date against my variable $DATE and the get all of the outer div. # Now that I only have 1-3 results I want to narrow this down to one result. Using $artistName retain the containing div and remove all other results. This step would mean that I should now only be left with 1 result. # Once I have narrowed down the results to 1 strip away html so that only the link is remaining. I guess at this point I need to use the results from filterDATE but for now I am checking I can pull back the link from the raw html. GETURL=$(cat html.txt | sed -n -e '/bhangra-artist-title/,/<\/a>/ p' | grep "bhangra" | sed 's/<a href=\"//g' | sed 's/"//g' ) echo "${DATE}" echo "${filterDATE}" echo "${GETURL}" Any help would be appreciated.
Xpath for input tag(radio button) inside a span class
Below is the code : I want to select the radio button which is present within the span class. Could you please help in identifying a successful xpath ? <div id="quicklinkbox" class="col-md-2" data-position="left" data-intro="You can directly download payslip PDFs for the last 3 or 6 months. (India payslip only)" data-step="4"> <div style="background-color: transparent; margin-top: 28px;"> <div id="panel-title" ng-click="changeExpand(expand);" style="position: relative; left: 24px; cursor: pointer; font-weight: 500;">Quick Download</div> <div id="panel-title" class="panel-body" style="text-align: left; font-weight: lighter; padding: 5px 0px 0px 50px; font-weight: 400"> <span style="margin-left: -16px;">Payslips for</span> <form class="ng-pristine ng-valid"> <div class="form-group"> <div class="radio"> <span same-heightcol="" style="font-size: 16px;"> <input class="ng-pristine ng-valid" type="radio" ng-model="payslipselectedopt" style="cursor: pointer;" value="3" name="payslipradio"/> <span style="font-size: 16px; position: relative; top: -5px;">Last 3 months</span> </span> </div> <div class="radio"> <span style="font-size: 16px;"> <input class="ng-pristine ng-valid" type="radio" ng-model="payslipselectedopt" value="6" name="payslipradio" style="cursor: pointer;"/> <span style="font-size: 16px; position: relative; top: -5px;"> Last 6 months</span> </span> </div> <img style="margin-bottom: -12px; margin-left: -16px; cursor: pointer;" ng-click="downloadbulkpayslip()" src="appResources/images/Download-button.png"/> </div> </form> </div> </div> </div> </div>
You can use: //span/input[#name='payslipradio' and #value='6'] Explanation: //span -> Will search in all HTML al span tag /input -> Will searth inside the span tag previous selected a input tag [#name='payslipradio' and #value='6'] -> Will search in the previous selected tags one that the name attr is equals to 'pslpradio' and value attr equals to '6'
//*span[input#class='ng-pristine ng-valid' and #type='radio']))
Need to identify element
Below is some HTML code, in which I need to find the element with the content win8 (last element, <div class="desc">win8</div>). <div class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-draggable ui-resizable" style="display: block; z-index: 5002; outline: 0px none; position: absolute; height: auto; width: 800px; top: 7px; left: 537px;" tabindex="-1" role="dialog" aria-labelledby="ui-dialog-title-1"> <div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix"> <div class="multi-wizard instance-wizard ui-dialog-content ui-widget-content" style="width: auto; min-height: 0px; height: 518px;"> <div class="progress"> <form novalidate="novalidate"> <div class="steps"> <div class="step setup loaded" wizard-step-id="setup" style="display: none;"> <div class="step select-iso loaded" wizard-step-id="select-iso" style="display: block;"> <div class="wizard-step-conditional select-template" style="display: block;"> <div class="main-desc"> <div class="template-select content tab-view ui-tabs ui-widget ui-widget-content ui-corner-all"> <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"> <input type="hidden" value="XenServer" name="hypervisor" wizard-field="hypervisor"> <div id="instance-wizard-featured-templates" class="ui-tabs-panel ui-widget-content ui-corner-bottom"> <div class="select-container"> <div class="select **even**"> <input type="radio" name="templateid" wizard-field="template" value="b0c24832-6fdf-11e4-a45f-b6eb114441ae"> <div class="select-desc"> </div> <div class="select **odd**"> <input type="radio" name="templateid" wizard-field="template" value="7720cdb2-b81a-4839-94cd-b56b660e3324"> <div class="select-desc"> <div class="name">win8</div> <div class="desc">win8</div> </div> </div> I tried the following XPath: .//*[#id='instance-wizard-featured-templates']/div/div[2]/input The issue is the screen has 2 elements, even and odd. Each time it loads it swaps the values. So the XPath selects the wrong element. Is there a way to exactly select win8?
Assuming you always want to get the element with the class named 'desc', the correct XPath is looks like this: //div[#class="desc" and text()="win8"] This selects all <div> elements having the class 'desc' and 'win8' as text.
JQGrid Disable Add Button in SubGrid Based on Status Column in SubGrid
I have a sub grid that has a status column defined. I would like to disable the Add button on its navGrid until subgrid's status column's value is 'Completed'. Here is a snippet of the HTML that is being generated that I'm (unsuccessfuly) trying to manipulate: (I think I need to use the first and last elements)...??? <div id="USAttorneyFoldersGrid_43" class="tablediv"> <div id="gbox_USAttorneyFoldersGrid_43_t" class="ui-jqgrid ui-widget ui-widget-content ui-corner-all" dir="ltr" style="width: 826px;"> <div id="lui_USAttorneyFoldersGrid_43_t" class="ui-widget-overlay jqgrid-overlay"></div> <div id="load_USAttorneyFoldersGrid_43_t" class="loading ui-state-default ui-state-active" style="display: none;">Loading...</div> <div id="editmodUSAttorneyFoldersGrid_43_t" class="ui-widget ui-widget-content ui-corner-all ui-jqdialog jqmID1" dir="ltr" style="width: 300px; height: auto; z-index: 950; overflow: hidden; top: 294px; left: 136px; display: none;" tabindex="-1" role="dialog" aria-labelledby="edithdUSAttorneyFoldersGrid_43_t" aria-hidden="true"> <div id="gview_USAttorneyFoldersGrid_43_t" class="ui-jqgrid-view" style="width: 826px;"> <div id="rs_mUSAttorneyFoldersGrid_43_t" class="ui-jqgrid-resize-mark"> </div> <div id="p_USAttorneyFoldersGrid_43_t" class="scroll ui-state-default ui-jqgrid-pager ui-corner-bottom" style="width: 826px;" dir="ltr"> <div id="pg_p_USAttorneyFoldersGrid_43_t" class="ui-pager-control" role="group"> This is my selector that doesn't appear to work: $('#USAttorneyFoldersGrid_43').navGrid('pg_p_USAttorneyFoldersGrid_43_t', { add: false }); What am I missing here?
You posted almost no code, but I hope that my old answer with the demo gives you information which you need.