click on submit button? any help?

  • Автор темы Автор темы webmuthu
  • Дата начала Дата начала

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.
 
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.
 
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.
 

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