S
S
Sergey2019-01-08 00:34:15
Python
Sergey, 2019-01-08 00:34:15

How to convert loop to string?

I wanted to make the variable s change to 5 each time, and the transition would go to the next page. But it opens page 1 all the time
And for some reason the cycle does not end

i = 1
s = str(i)

while i < 5:

    driver.get("https://site.ru/index.php?all=" + s)

driver.quit();

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lega, 2019-01-08
@alekskondr

for i in range(1, 6):
  str(i)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question