Skip to content
Advertisement

using Selenium to get texts inside ‘ul’ tag?

Please help me to find the solution to get the text inside ‘ul’ tag.

I want to get the information which is separated with commas like: ‘Contains Enzymatically Active B-Vitamins, Dietary Supplement, Non-GMO LE Certified’

website link: https://ca.iherb.com/pr/Life-Extension-BioActive-Complete-B-Complex-60-Vegetarian-Capsules/67051

picture: enter image description here

This is the HTML code:

JavaScript

Advertisement

Answer

This should do it:

JavaScript

Output:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement