When using ".GetAttribute()" method I can only use 1 single attribute name, it does not support for example (lastElementChild.innerText)
so I don't know how to formulate a method to get the same result.
For example, if it is to read the last message of a chat, you could simply use Innertext, but it would get all the dialogs and that would consume more resources than necessary.
I have switched to using selenium chrome because webbrowser is a bit obsolete for some pages, but without a doubt, using the document method was very simple and easy to work everything with js inputs.
Now in selenium it is a little different, the element paths are obtained from XPath and at least I don't know how to use JS path.
I need help with this, thanks!
so I don't know how to formulate a method to get the same result.
For example, if it is to read the last message of a chat, you could simply use Innertext, but it would get all the dialogs and that would consume more resources than necessary.
I have switched to using selenium chrome because webbrowser is a bit obsolete for some pages, but without a doubt, using the document method was very simple and easy to work everything with js inputs.
Now in selenium it is a little different, the element paths are obtained from XPath and at least I don't know how to use JS path.
I need help with this, thanks!