Wrong convert to C#

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 799
Благодарностей
1 187
Баллы
113
There is example action what makes wrong converting.

When you convert this action it makes it like this:

C#:
// Action designer, type RiseEvent
HtmlElement he = instance.ActiveTab.GetDocumentByAddress("0").FindElementByAttribute("button", "innertext", "^Submit$", "regexp", 0);
if (he.IsVoid) {
    he = instance.ActiveTab.GetDocumentByAddress("0").FindElementByAttribute("button", "value", "1", "text", 0);
}
if (he.IsVoid) return -1;

// Emulation delay
instance.WaitFieldEmulationDelay();
// Call the event "click"
he.RiseEvent("click", instance.EmulationLevel);
This code search element like with OR and not AND

I have reported and asked that long before, as I see no changes there.
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 413
Благодарностей
5 900
Баллы
113
Could you please attach test template with example of such action which is wrongly converted? Our developers will check it.
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 799
Благодарностей
1 187
Баллы
113

Вложения

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 413
Благодарностей
5 900
Баллы
113

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