Z
Z
ZhukovMisha2019-06-12 13:07:06
Python
ZhukovMisha, 2019-06-12 13:07:06

How to get svg and tag from it?

How to get svg and tag from it using xpath.
Here is the svg view itself.
5d00cd7be2323095129501.png
I need to get the value of the viewBox tag, but just writing like this
find_by_xpath('svg[@class="icon miniCard__icon"]').get_attribute('viewBox')
does not give anything, there is absolutely no information in Google.
And if you look down this svg tag, there is shadow_root(closed)
What does that mean?
And also what does this construction after this svg mean in general
.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Fov, 2019-06-12
@ZhukovMisha

//*[name()='svg' and @class="icon miniCard__icon"]/@viewBox

It?
5d00d2aade824973060137.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question