How to refresh a page?

Asked by Artem Ustinov on 2012-03-27

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_elements_by_xpath('//*[text()="Recognition Pending"]')) > 0:
 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
For:
selenium-simple-test Edit question
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.

To post a message you must log in.