[INTERFACE]DIALOG, "Переход по URL", 553, 103;STATIC, "Перейти по URL", 4, 4, 84, 20;EDIT, 92, 4, 448, 20, unknown URL;STATIC, "Ожидать загрузку страницы сек", 4, 28, 168, 20;EDIT, 176, 28, 100, 20, int Tim;BUTTON_OK, "Принять", 336, 52, 100, 20;BUTTON_CANCEL, "Закрыть", 440, 52, 100, 20;[END]
[APPEARANCE]
COLOR = 0, 0, 255;
SIZE_X = 12;
SIZE_Y =4;
[END]

[INFO]
[ENDL]>>URL
[END]

[ASSOC_VAR]
URL="https://www.google.com";
Tim=10;
[END]


[FUNCTION_BODY]function(string Url, int Time)
{
sendgetpython("Url = r^'"+Url+"^'");
sendgetpython("Time = r^'"+format(Time)+"^'");
__python_sync
#Максимальное время на загрузку страницы
try:
    web.set_page_load_timeout(Time)
#Переходим по URL
    web.get(Url)
except TimeoutException as e:
    time.sleep(1)

__end_python
}
[END]

[CALL](URL, Tim)[END]