c# execute red exit

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

gongyouze

Пользователь
Регистрация
26.06.2014
Сообщения
42
Реакции
0
Баллы
6
If I want Step c# return to error, what should I do
1.jpg
my code is:

if (System.Int32.Parse(project.Variables["a"].Value)<2)
{
Tab tab = instance.ActiveTab;
stringpageurl=tab.URL;
tab.Navigate(pageurl, "");
if (tab.IsBusy) tab.WaitDownloading();
int a = System.Int32.Parse(project.Variables["a"].Value)+1;
return a ;
}
else
{
return t;
}

When if {} else c# starts to execute the Step error, execute
2.jpg

What value should I return to realize this purpose.
 
We are always two steps to complete such a thing if the condition returns a value from the C # module and then use an if statement to determine whether to perform red exit, I hope to complete a step
 
here
 

Вложения

thanks very much
 

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