click on submit button? any help?

webmuthu

Пользователь
Регистрация
27.11.2012
Сообщения
43
Благодарностей
0
Баллы
6
hi,

in content posting page there was two submit button. save and preview. some page was preview and save. some rare pages was preview only. if we click preview then it shows save button. all are submit button.

how can i set common action for this criteria. I was set to find save button, using it's ID attribute. if found then click save button. But it won't work some cases. If the button is save it works. if the button is preview it clicks the activate button. i can't save the posting in this situation.


thanks in advance.
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
834
Баллы
113
I guess even if you click preview you are able then clicking save. So in case they have the same id, name etc you can try click it twice.
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
You can use outertext of the button which will be 'Save'. I know it's not the best solution because if the website is in a different language then you have to account for every possibility. You can actually make an action in your template to 'Get' the outertext of the buttons and save to a file. The you can use the contents of this file by putting a pipe (|) between the words, putting the text to a variable and then using the variable as a regex match in your search attributes.
 

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