<nav class="flex h-full w-full flex-col p-2 gizmo:px-3 gizmo:pb-3.5 gizmo:pt-0" aria-label="Menu">
This is the nav although, its a-lot longer its full of divs
I just want to know how to scroll till the end of the menu. Edit: loading element that has to be accounted for
<svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="animate-spin text-center" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg">
and under it there are many line elements
top of nav xpath:
/html/body/div[1]/div[1]/div[1]/div/div/div/div/nav
top of svg xpath:
/html/body/div[1]/div[1]/div[1]/div/div/div/div/nav/div[2]/div[2]/div[2]/svg
do you need scrollbar html?
There are lots of specialized scroll methods in SeleniumBase:
But you might not even need to scroll to the element. There's a
self.js_click(selector)
method, which lets you click on hidden elements that exist in the HTML.Here's an example test that uses that method to click a hidden logout menu item from the nav: