Bad select option value when playing

geproti

Новичок
Регистрация
12.02.2013
Сообщения
11
Благодарностей
1
Баллы
0
Hi!

I'm working on my first project and I try a realy simple project with action recording. On my page I have several select input. When I record, the value recorded is the good one, but when I run the project the value is not the good in the browser window.

For example I have

HTML:
<option id="cat1" value="1">foo</option>
<option id="cat2" value="2">bar</option>
When I choose foo during action recording I find the good set value 1 in my project. When I play the project in debbug mode I can see in the log "Element found" and just after "Result:2" but in the browser it's bar instead of foo.

It's a select list with more than 50 options, and on other select list on the same page it works great.

Can you please help me?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 712
Баллы
113
Please attach sample template to check what you do:

- Go to page
- Your action for select
 

geproti

Новичок
Регистрация
12.02.2013
Сообщения
11
Благодарностей
1
Баллы
0

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 712
Баллы
113
Try to use set - selecteditems
 

Вложения

  • Спасибо
Реакции: geproti

geproti

Новичок
Регистрация
12.02.2013
Сообщения
11
Благодарностей
1
Баллы
0
Thank you it work great! :D

Do you have an idea why the where value doesn't work correctly?

And last question why the action title doesn't change? The title stay with "Set Value [3] for elem..." instead of "Set Value [Motos] for elem..."
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 712
Баллы
113
It uses javascript for this select.
Dont know for sure how it work here, but set - value doesnt return desired result )
But set -selecteditems does the trick.

And last question why the action title doesn't change? The title stay with "Set Value [3] for elem..." instead of "Set Value [Motos] for elem..."
I manually edited it inside )
Didnt recorded it.
 

geproti

Новичок
Регистрация
12.02.2013
Сообщения
11
Благодарностей
1
Баллы
0
Ok, so once it's is recorded you can't change the title of an action. Good to know.

It would be better for template readability to have up to date action title.

Thank you again for your help! :-)
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 712
Баллы
113
  • Спасибо
Реакции: geproti

geproti

Новичок
Регистрация
12.02.2013
Сообщения
11
Благодарностей
1
Баллы
0
Yes thank you! It's perferct :-)
 

geproti

Новичок
Регистрация
12.02.2013
Сообщения
11
Благодарностей
1
Баллы
0
I can't add [SOLVED] in the title of the thread. There's no edit option in thread tools menu.
 
  • Спасибо
Реакции: eliadsonet

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 712
Баллы
113
SOLVED mark is for bug section :-)
I dont mark Questions threads :-)
 

geproti

Новичок
Регистрация
12.02.2013
Сообщения
11
Благодарностей
1
Баллы
0

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