HotimartBot icon indicating copy to clipboard operation
HotimartBot copied to clipboard

Error finding element identifiers!

Open katomaro opened this issue 5 years ago • 5 comments

As it is, Hotmart offers 2 course themes (that I am aware of), the light one and a cinema one called "midnight", the application looks for the css selectors that only exist in the default white theme, navigation-modules from the default theme kinda becomes navigation__modules in the midnight theme, and the overall page layout changes which can net you a handful of other errors related to element finding by Selenium. I am aware that in the Midnight theme, video lessons can be split into playlist 'parts' that appear below the video inside that lesson (Left navigation bar has module names, inside a module theres lesson name and in the lesson video player there is the playlist, which doesn't appear on the navbar itself). When first opening videos in this midnight layout, you're greeted with a round play button, so that is yet another element to keep in mind.

Best way to fix it would be to implement a way to detect the course layout and adjust the element searches, or, ask the user at startup as a required parameter.

Proof attached below Default Theme: correct theme Midnight Theme: wrong theme

katomaro avatar Dec 14 '20 03:12 katomaro