-
I have deployed NovelAI on my server, and I am trying to manipulate the images directly through python's selenium library, but I can never get any of the elements on the page. Can anyone help me please? Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Can you copy the xpath? |
Beta Was this translation helpful? Give feedback.
-
I just found the problem, the reason is that the entire page is in fact in a dom, you can see a shadowRoot (open) node, it is this node leads to the inability to access the elements directly through selenium. The solution is to get this shadowRoot directly through the js command, and then the elements inside the dom can be accessed through this shadowRoot. |
Beta Was this translation helpful? Give feedback.
I just found the problem, the reason is that the entire page is in fact in a dom, you can see a shadowRoot (open) node, it is this node leads to the inability to access the elements directly through selenium.
The solution is to get this shadowRoot directly through the js command, and then the elements inside the dom can be accessed through this shadowRoot.