Following is how the element looks like on the page:
I want all the li which comes right after General Engineering Courses. General [COURSE_NAME] Courses is common text on other pages as well.
So basically I want all the li which come right after GENERAL [COURSE_NAME] Courses.
I wrote the following XPath, but unfortunately, it's causing DOMException while executing the XPath on Chrome.
//*[starts-with(text(), 'GENERAL') and ends-with(text(), 'COURSES')]
Page: http://catalog.fullerton.edu/content.php?catoid=16&navoid=1922
You need use XPath Axes, the following-sibling