(May-18-2021, 02:17 PM)euras Wrote: ok, I tried it with CSS selector (took full Xpath), but it still does not work :/There is no
f
then there is just a string and not using f-string.The basic of this wrong and right.
>>> cars = ["Audi", "Opel", "BMW"] # Just a string nothing happens >>> for inda, content in enumerate(cars): ... print('tr[{inda}]>td[8]{content}') ... tr[{inda}]>td[8]{content} tr[{inda}]>td[8]{content} tr[{inda}]>td[8]{content} >>> >>> # Right way >>> for inda, content in enumerate(cars): ... print(f'tr[{inda}]>td[8]{content}') ... tr[0]>td[8]Audi tr[1]>td[8]Opel tr[2]>td[8]BMWAnd you CSS selector can not start with
>
as is not a valid selector.Look at CSS Selector Reference .