I have this selenium code
x = browser.find_element_by_xpath('//*[@id="paginacaoSuperior"]/tbody/tr[1]/td[1]/h2/span').text
this code returns this value to me
result 1 to 299
I wanted to remove these values
result 1 to
leaving only 299
with this value 299 divide by 12
y = 'Result1to'
for i in range(0,len(x)):
x = x.replace(y[i],"")
print(x)
I used this code but gave error