Release ZennoDroid 2.4.3.0 — Action "Appium Settings" • Custom Proxy Rules for Clash Mode • Element Screenshot Support

ZennoLab Team

Super Moderator
Команда форума
Регистрация
22.01.2019
Сообщения
1 850
Благодарностей
4 107
Баллы
113


New Action: Appium Settings

This action allows you to manage how the element tree is built:
  • Allow invisible WebView: fixes an issue where the element tree stops building on large pages.
  • Allow invisible elements: displays all screen elements in the element tree, including those outside the visible screen. Invisible elements will have the displayed attribute set to false. Tree generation will be significantly slower, especially on large pages.
  • Ignore unimportant elements: the tree will be built without secondary elements that contain no useful information (FrameLayout, ViewGroup, etc.). Tree generation will be significantly faster.

Allow invisible WebView: Disabled


Allow invisible WebView: Enabled


Custom Proxy Rules for Clash Mode

The "Set Proxy" action now supports setting custom proxy rules in Clash mode. Rules can be separated by a semicolon ( ; ) or a newline.

DOMAIN-REGEX,^abc,DIRECT # Do not proxy domains starting with "abc"
DOMAIN-SUFFIX,ya.ru,REJECT # Block traffic to ya.ru
DOMAIN-KEYWORD,google,PROXY # Proxy traffic if domain contains "google"
IP-CIDR,1.1.1.1/32,DIRECT # Do not proxy traffic to 1.1.1.1
AND,((NETWORK,TCP),(DST-PORT,5228-5230)),DIRECT # Do not proxy traffic on TCP ports 5228–5230
MATCH,DIRECT # Do not proxy any traffic
MATCH,PROXY # Proxy all traffic

Example: To proxy traffic only to 2ip.ru and ignore all other traffic, use:
DOMAIN-SUFFIX,2ip.ru,PROXY;MATCH,DIRECT

Important: You must disable Private DNS, otherwise domain proxy rules may not work properly. (Custom C# code)
Код:
instance.DroidInstance.Proxy.DisablePrivateDns();

Element Screenshot Support

The "Get Value" action now supports taking a screenshot of an element (in Base64 format).

In the API, you can now take a screenshot of an element or the entire screen (in Base64). (Custom C# code)

Код:
// Full screen
return instance.DroidInstance.AppiumDriver.GetScreenshot();

// Element
var element = instance.DroidInstance.AppiumDriver.FindElementByUiAutomator($"new UiSelector().textContains(\"Chrome\")");
return element.GetScreenshot();
You can then convert the Base64 string to an image ( C#):
Код:
var base64 = project.Variables["base64"].Value;
using (var ms = new MemoryStream(Convert.FromBase64String(base64)))
using (var bmp = new Bitmap(ms))
        bmp.Save(project.Path + "screen.png", System.Drawing.Imaging.ImageFormat.Png);

Full changelog 2.4.3.0

Added:

+ New action: Appium Settings.
+ Ability to set custom proxy rules in Clash mode.
+ Ability to take element screenshot in Get Value.
+ API support for element/full screen screenshots (Base64) (C#).
+ New option in "Swipe Emulation" to set swipe curvature and strength (from -1.0 to +1.0). The curve varies randomly within this range. The sign of the number affects the curve direction.
+ New API methods to configure swipe curve strength.
+ Clash updated to 1.19.10.
+ UIAutomator2 updated to 7.6.2
+ FFmpeg updated to 7.1.1
+ Adb updated to 36.0.0
+ Scrcpy updated to 3.3.1
+ Frida updated to 16.7.19


Fixed:

Improved ad blocking when launching MEmu.
Fixed issue where emulator window appeared minimized when restored from taskbar.
Fixed API method instance.DroidInstance.AppiumDriver.ScrollToElementByAccessibilityId(string id, int maxSwipes)
Fixed bug where BotUI settings were not opening in ZennoDroid.
Fixed display of projects when selecting tags.

Where to download?

ZennoDroid 2.4.3.0 is already available in your personal account!
You’ll also be prompted to update when launching ProjectMaker.


How to report bugs?

Please report all issues to the Bugtracker, including a detailed description and reproduction steps. This will help us quickly diagnose and fix the problem.
 

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