How to refresh a page?
I need to refresh a page inside while loop.
If I am just calling go_to() action it clears all
my variables and exits the script in the end of the cycle
75 go_to('list/')
76 time, wait_time = 1, 1
77 while len(get_
78 ____ print(' Waiting for elements to be recognized')$
79 ____ print(' Will wait for', wait_time, 'seconds')$
80 ____ sleep(wait_time)$
81 ____ time, wait_time = wait_time + time, time$
82 ____ if wait_time > 200: break$
83 ____ go_to('list/')
if iam calling go_to() inside the block my time and wait_time becomes zero and script ends with pass result
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- 2012-03-27
- Last reply:
- 2012-03-30
Corey Goldberg (coreygoldberg) said : | #1 |
I just added a `refresh()` action to sst (it just calls webdriver's refresh() on the current browser page.
(I am not sure if that will address your problem or not though)
Can you help with this problem?
Provide an answer of your own, or ask Artem Ustinov for more information if necessary.