0
Integer i is also getting read as a string. I want to use it as an integer. Please help
for i in range(50): titles_element = browser.find_elements_by_xpath("//*[@id='alx-content']/div/div/section[2]/span/span/div/div/div[2]/div[i]/div[2]/p/a") titles = [x.text for x in titles_element] # print out all the titles. print(titles) Here in the above when i run this code it is taking i as a string and not printing the result as per the incrementation. It is gives same output several times instead of changing due to the incrementation of the value of 'i'. Please help me out from this issue.
1 Answer