Wrong convert to C#

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

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 921
Реакции
1 206
Баллы
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.
 
Could you please attach test template with example of such action which is wrongly converted? Our developers will check it.
 

Вложения

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