Skip to content
Advertisement

I am very new to scraping please bear with me and this is my 1st project. I am trying to scrape a site using selenium

JavaScript

website I’m scraping https://www.telekom.de/unterwegs/apple/apple-iphone-13-pro/graphit-512gb

label image I was not able to print the radio buttons label according to checked button. I don’t know what is the mistake and where I did it. could anyone help on this. It will be helpful for me to learn. Change tariff links given below links,

JavaScript

Advertisement

Answer

You are trying to find element within an element. Finding radio_label_list using for_tariff_loop[i], xpath for radio_label_list will become like below:

JavaScript

Which does not exist in the DOM.

I tried the last part of the code. And was able to print the Memory size like below. Do try and confirm:

Replaced css-selector for radio_label_list with this xpath ./following-sibling::span

JavaScript

As per the comments, check this code:

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