Is there a way to refresh the web browser in Kapow?
3 posters
Refresh Browser
Shyam Kumar- Ranks
- Posts : 113
Points : 4134
Join date : 2013-07-05
Location : Kerala, India
- Post n°2
Re: Refresh Browser
Yes, based on your logic you can refresh the website, see the example
Here loading the website and looping each tag, after few iterations it will not work and we need to refresh the website.
So here I am implementing whenever the click action is stuck with any point, it will goes to try action step (refresh) and the current loop is ending. So automatically Repeat next will work and website will load again.
Just try the logic.
Thank you
Regards,
Shyam
Here loading the website and looping each tag, after few iterations it will not work and we need to refresh the website.
So here I am implementing whenever the click action is stuck with any point, it will goes to try action step (refresh) and the current loop is ending. So automatically Repeat next will work and website will load again.
Just try the logic.
Thank you
Regards,
Shyam
amaheshwary- Posts : 14
Points : 1657
Join date : 2019-11-01
Shyam Kumar- Ranks
- Posts : 113
Points : 4134
Join date : 2013-07-05
Location : Kerala, India
- Post n°4
Re: Refresh Browser
Can you share me the source link?
Can you just check if any url making is possible?
I will try and share..
Can you just check if any url making is possible?
I will try and share..
amaheshwary- Posts : 14
Points : 1657
Join date : 2019-11-01
- Post n°5
Re: Refresh Browser
https://www.doordash.com/food-delivery/atlanta-ga-restaurants/ <-- 1st page
https://www.doordash.com/food-delivery/atlanta-ga-restaurants/2/ <-- 2nd page.... and so on...
https://www.doordash.com/food-delivery/atlanta-ga-restaurants/2/ <-- 2nd page.... and so on...
Shyam Kumar- Ranks
- Posts : 113
Points : 4134
Join date : 2013-07-05
Location : Kerala, India
- Post n°6
Re: Refresh Browser
Hi,
This type of URL's can easy to manage, We can implement various logic, See some example, here all the URL have the page number, So you can load the URL from Expression.
"https://www.doordash.com/food-delivery/atlanta-ga-restaurants/"+Page_Number+"/"
example: for the first page, https://www.doordash.com/food-delivery/atlanta-ga-restaurants/1/
second page, https://www.doordash.com/food-delivery/atlanta-ga-restaurants/2/
and so on..,
So initial you can call repeat next action step, then get iteration step to get the iteration value in a variable, then load the URL from expression and call the iteration parameter, so it will redirect to the corresponding page.
And you can test any condition to break the iteration when it will finish all the paging.
Another method is to extract the maximum page number to a global variable and in a conversion step -1 each time. ( eg: here max page number is 48, So you can assign or extract it directly to a variable, and using convert step you can -1 every time and load the URL.
This type of URL's can easy to manage, We can implement various logic, See some example, here all the URL have the page number, So you can load the URL from Expression.
"https://www.doordash.com/food-delivery/atlanta-ga-restaurants/"+Page_Number+"/"
example: for the first page, https://www.doordash.com/food-delivery/atlanta-ga-restaurants/1/
second page, https://www.doordash.com/food-delivery/atlanta-ga-restaurants/2/
and so on..,
So initial you can call repeat next action step, then get iteration step to get the iteration value in a variable, then load the URL from expression and call the iteration parameter, so it will redirect to the corresponding page.
And you can test any condition to break the iteration when it will finish all the paging.
Another method is to extract the maximum page number to a global variable and in a conversion step -1 each time. ( eg: here max page number is 48, So you can assign or extract it directly to a variable, and using convert step you can -1 every time and load the URL.
|
|