how to stop a reloading web page? Click Reload page and Stop page reload not working.

1,364 views
Skip to first unread message

narendra vemuri

unread,
Jun 13, 2018, 6:45:18 AM6/13/18
to robotframework-users
how to stop a reloading web page? 

   Reload Page  
    Press Key  xpath=//div[@id='navbar']/ul[1]/li[3]/a \\\27


ClickNextButtonKW
    # Close Browser
    Click Element   xpath=//table[@id='mySubscriptionsTable']/tbody/tr/td[1]/Input
    Click Element   id=deProvBtn
    sleep    1s
    Click Element   id=deProvsionBtn
    sleep    1s
    Click Element   xpath=//table[@id='mySubscriptionsTable']/tbody/tr/td[1]/Input
    Reload Page  
    Press Key xpath=//div[@id='navbar']/ul[1]/li[3]/a \\\27
    Reload Page  
    Press Key  xpath=//div[@id='navbar']/ul[1]/li[3]/a  \\\27
    #Execute Javascript    window.location.reload(true);
    #Execute Javascript    window.location.reload(false);

Anne kootstra

unread,
Jun 16, 2018, 9:04:06 AM6/16/18
to robotframework-users
Are you automating an online web page or a private web page. Presently the problem doesn't seem very clear to me what is actually happening.

--Anne

Op woensdag 13 juni 2018 12:45:18 UTC+2 schreef narendra vemuri:

narendra vemuri

unread,
Jun 23, 2018, 1:52:11 PM6/23/18
to koot...@gmail.com, robotframework-users
Hi, 
 I am doing a web page automation.

Each time I need to search and get one row based on id. 

Then select it and delete it. 
 Once delete is clicked, page is reloading.

Now this is the problem. 

To stop page reload, I need to do page reload and need to stop page reload immediately.

here page reload is started, but failed to stop the page reload. Robotframework is not fiven any option to stop the webpage reload.

--
You received this message because you are subscribed to a topic in the Google Groups "robotframework-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotframework-users/PEenf98eVNA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Tatu Aalto

unread,
Jun 23, 2018, 2:41:58 PM6/23/18
to vemurin...@gmail.com, koot...@gmail.com, robotframework-users
Ugh

If reload is normal webapp behaviour, I don't understand why you want to stop it? Or more precisely, what benefits you think it will bring to you?

The reason why stop page load is not in SeleniumLibrary, is because such functionality does not exist in the Selenium API. But if really want to do, I would look to here: https://sqa.stackexchange.com/questions/5663/is-it-possible-to-stop-page-loading-on-the-browser-using-selenium-web-driver

-Tatu
Send from my mobile

You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.

narendra vemuri

unread,
Jun 23, 2018, 2:45:16 PM6/23/18
to Tatu Aalto, koot...@gmail.com, robotframework-users
Time: As this reload is taking 5 to 8 mins to load 1500 rows to complete, I can save time by stoping the reload and start the loop.

Anne kootstra

unread,
Jun 24, 2018, 4:49:54 AM6/24/18
to robotframework-users
Given that is a lot of time to reload, and if that is the expected production behaviour I'd start thinking about what it is I'm testing. If the time consuming part of generating this page can be stubbed. if this is an end to end test and should include this part, then perhaps accepting this as fact of life and running more tests in parallel to achieve the desired test throughput. 

-Anne 

Op zaterdag 23 juni 2018 20:45:16 UTC+2 schreef narendra vemuri:
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsub...@googlegroups.com.

To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.

narendra vemuri

unread,
Jun 25, 2018, 12:54:35 AM6/25/18
to Anne kootstra, robotframework-users
Hi  Anne, 

If I open the second session, then the first session get kills. One session at a time. Parallel execution is not possible in this case.
I need to stop the page reload in robot framework.  Help me how to do the ' Stop Reload Page ' in robot framework.

(signature)
Thanks  & Regards
Narendra V.
WhatsApp: 9030370686




To unsubscribe from this group and all its topics, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "robotframework-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotframework-users/PEenf98eVNA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.

Tatu Aalto

unread,
Jun 25, 2018, 2:20:59 AM6/25/18
to vemurin...@gmail.com, koot...@gmail.com, robotframework-users
Ugh

We do understand that that is the thing you think you need. But from our side, we are trying at least two things:
1) Understand what you are trying to solve and why? Because now you are wanting a technical implementation, but there might be other ways to solve the problem. And those ways might be better than the solution you have mind. But because you are looking for a technical implementation, we don't know what and why are and therefore we are not able to help you.
2) Make you think. I am worried on what you want to do (and based Anne's emails, she is worried too) and specially how you want to do it. Because the technical solution you are looking for is, most likely, to use threads. Generally but threads are hard to understand and Selenium is not thread safe. 

But because of the first point, we don't know what you want and why you want it, we are not able to help you to find better solutions. And saying that it takes too much time, is not the correct answer to what and why.


-Tatu
Send from my mobile
To unsubscribe from this group and all its topics, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "robotframework-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotframework-users/PEenf98eVNA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotframework-u...@googlegroups.com.

To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.

narendra vemuri

unread,
Jun 25, 2018, 5:50:48 AM6/25/18
to Tatu Aalto, Anne kootstra, robotframework-users
Hi Tatu,


1) This is the function I am trying to execute. Correct my function if you can save the time. 

2. Here I try to click an escape key through the program but it is failing. 


Delete table row based on guids
    Wait Until Page Contains Element    xpath=//div[@id='navbar']/ul[1]/li[3]/a     timeout=12
    Click Element   xpath=//div[@id='navbar']/ul[1]/li[3]/a
    Wait Until Page Contains Element    xpath=//div[@id='navbar']/ul[1]/li[3]/ul/li[1]/a    timeout=12
    Click Element   xpath=//div[@id='navbar']/ul[1]/li[3]/ul/li[1]/a

    : FOR    ${guid}    IN      @{GUIDS}
    \   Wait Until Page Contains Element    xpath=//div[@id='mySubscriptionsTable_filter']/label/input      timeout=120
    \   Input Text   xpath=//div[@id='mySubscriptionsTable_filter']/label/input   ${guid}
    \   sleep    1s
    \   ${present}=  Run Keyword And Return Status    Element Should Be Visible   xpath=//table[@id='mySubscriptionsTable']/tbody/tr/td[1]/Input
    \   Run Keyword If    ${present}    ClickNextButtonKW       ELSE    ClickFailButtonKW

ClickFailButtonKW
    Clear Element Text       xpath=//div[@id='mySubscriptionsTable_filter']/label/input
ClickNextButtonKW       
    # Close Browser
    Click Element   xpath=//table[@id='mySubscriptionsTable']/tbody/tr/td[1]/Input
    Click Element   id=deProvBtn
    sleep    1s
    Click Element   id=deProvsionBtn
    sleep    1s
    Click Element   xpath=//table[@id='mySubscriptionsTable']/tbody/tr/td[1]/Input
    Reload Page
    Sleep    1s
    Press Key    id=kw    \\09
    Reload Page
    Sleep    1s
    Press Key    id=kw    \\09

(signature)
Thanks  & Regards
Narendra V.
WhatsApp: 9030370686




To unsubscribe from this group and all its topics, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "robotframework-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotframework-users/PEenf98eVNA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages