Browser "Back" button

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0
Is this a simple command to emulate clicking the browser back button?

Thanks
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
Enter to the navigation panel:
javascript: history.back(1); void 0;
or
javascript: history.back(1);
 

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0
Enter to the navigation panel:
javascript: history.back(1); void 0;
or
javascript: history.back(1);
Thanks but when I try to include this in a template browser "Go to page" step, I get this error: "Error occurred while executing template"

I've tried:
javascript: history.back(1); void 0;-|-page
javascript: history.back(1);-|-page
{-JS.Execute-|-history.back(1); void 0;-}-|-page
{-JS.Execute-|-history.back(1);-}-|-page

All return the same error.
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
Does it work on IE?
I mean this javascript on site which you need
 

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0
Finally solved it. Javascript on the page was confusing the Action recording, however after editing the template history.back(1); does actually work.
 

kamazi

Client
Регистрация
16.10.2013
Сообщения
29
Благодарностей
0
Баллы
1
Thanks Hungry Bulldozer!

Using javascript: history.back(1);-|-page works great on the test pages. Unfortunately however, it doesn't work for the site I'd like to automate. I guess there is some clash between the javascript on the site and the history.back(1) code.
This in zennoposter 5 doesn't work
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 703
Баллы
113
Here you go
 

Вложения

  • 9,4 КБ Просмотры: 1 020
  • Спасибо
Реакции: A76 bot

bill

Client
Регистрация
05.07.2014
Сообщения
355
Благодарностей
9
Баллы
18
^^^^^^^^^^^^^^^^^^^^^this didnt click back for me
 

bill

Client
Регистрация
05.07.2014
Сообщения
355
Благодарностей
9
Баллы
18
nevermind i had java off!
 

Alouka

Пользователь
Регистрация
30.07.2015
Сообщения
89
Благодарностей
5
Баллы
8

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 703
Баллы
113
You can always save need URL to variable and navigate there once you need it
 
  • Спасибо
Реакции: Alouka

Alouka

Пользователь
Регистрация
30.07.2015
Сообщения
89
Благодарностей
5
Баллы
8
I see, but this hasn't the same effect as a real back i think.. thank you
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)