Skip page loading

topdown

Новичок
Регистрация
08.10.2013
Сообщения
3
Реакции
1
Баллы
3
Hello,

I have 4 tabs opened and I need to switch between them and click a button. The problem is that every following action is executed only when the page from the active tab is fully loaded...
the clicks have to be at a very short time difference between each other

Can you guys point me in the right direction? Thank you!
 
Hello,

I have 4 tabs opened and I need to switch between them and click a button. The problem is that every following action is executed only when the page from the active tab is fully loaded...
the clicks have to be at a very short time difference between each other

Can you guys point me in the right direction? Thank you!

While using default click actions it won't be possible, because default click action will wait while page loads.
But You can look in C# where You have full control of that.
For example this https://help.zennolab.com/en/v5/zennoposter/5.40.0.0/webframe.html#topic126.html
this code won't wait for any page loading.
 
  • Спасибо
Реакции: topdown
Thank you lokiys! It worked flawlessly. For anyone else having trouble with this try the following code and replacing the Tag, Atribute name, etc with your values:

C#:
Развернуть Свернуть Копировать
// find element by attribute
HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("Tag", "Attribute name", "Value", "Search type", 0);
 
// click on the element
he.Click();
 

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