Selectors for web page

Hi all, how do I create selectors for the following? Many thanks!

https://www.bookdepository.com/Very-Hungry-Caterpillar-Little-Learning-Library-Eric-Carle/9780141385112?ref=grid-view

I want to get “For ages” value. The field can be absent, and the values can be 0-5 or 9+ or something else.

I’ve tried

A snippet of the html source code:

ul class=“biblio-info”

                <li>
                            <label>For ages</label>
                            <span>0-5</span>
                        </li>
                    <li>
                        <label>Format</label>
                        <span>
                            Board book
                                | <span itemprop="numberOfPages">48 pages</span>
                            </span>
                    </li>
                <li>
                        <label>Dimensions</label>
                        <span>
                            100
                                x 126
                                x 53mm
                            
                                | 332g
                            </span>
                    </li>
                <li>

Have you tried ‘Get Attribute’ activity for that element with attribute as ‘innerText’.

GetAttributeTest.xaml (5.4 KB)

Let me know if that’s not what you are looking for.

Thanks,
Rammohan B.

Hi Rammohan,

Thanks for replying! I’m having trouble getting the dynamic value (can’t use 0-5 in selectors as there are other possible value such as 9+, see below)

https://www.bookdepository.com/Wonder-R-J-Palacio/9780552565974?ref=grid-view

Michael

Update your relative selector as,
<webctrl tag='SPAN' parentclass='biblio-info' />

Let me know if it works,

Thanks,
Rammohan B.

Hi Rammohan,

It works now! Thank you very much!

regards,
Michael

Great. I saw that your title of the page keeps on changing as well.

You can have your ‘Attach Browser’ sector as below:
"<html app='chrome.exe' url='https://www.bookdepository.com/*' />"

Glad it worked. Happy to help :slight_smile:

Thanks,
Rammohan B.