Environment variables in ZennoPoster

Table of contents


There are environment variables in ZennoPoster beside user ones. They store various information: parameters of the instance page (URL, DOM, text, domain, notification and alert text, etc.), time and date variables, project variables (name, folder, proxy rules, id of the last error etc.), numerous profile variables (mail, gender, name, user agent, etc.)

Below you can find detailed information about each variable.


Variables of the current active tab

Name

Description

Name

Description

{-Page.Url-}

Current page url

{-Page.Source-}

Source code of the current web page

{-Page.Dom-}

DOM of the current web page

{-Page.Text-}

The text of the current web page without HTML tags

{-Page.FullDomain-}

Full domain of the current web page, including subdomains.

{-Page.Domain-}

The main domain of the current web page, excluding subdomains.

{-Page.LastAlertTitle-}

Alert title displayed on sites using the alert () JS function

{-Page.LastAlertText-}

Alert text displayed on sites using the alert () JS function

{-Page.LastNotificationTitle-}

The title of the last notification from the site

We are talking about messages that come after you allow the site to send you notifications.

{-Page.LastNotificationText-}

The text of the last notification from the site

We are talking about messages that come after you allow the site to send you notifications.

{-Page.LastDownloadedFile-}

Full path of the last downloaded file

Time and date

Name

Description

Name

Description

{-TimeNow.Date-}

Current date and time in format ММ/DD/YEAR hh:mm:ss (example - 01/25/2020 14:41:18).

You can change the format of the output string! To do this, add a format template before the closing parenthesis.

Example: {-TimeNow.Date dd.MM.yyyy HH.mm-}, after execution we get the following string - 25.01.2020 14.41

You can read more about formatting here and here.

{-TimeNow.Day-}

Day of the month

{-TimeNow.Month-}

Current month (day)

{-TimeNow.Year-}

Current year

{-TimeNow.DayOfWeek-}

Day of the week

{-TimeNow.Hour-}

Current hour (in 24 hour format)

{-TimeNow.Minute-}

Current minute

{-TimeNow.Second-}

Current second

{-TimeNow.Millisecond-}

Current millisecond

{-TimeNow.TimeNow-}

Current date and time in format YEAR-ММ-DD hh-мм-ss--milliseconds (2020-01-25 14-41-59--834)

{-TimeNow.UnixTime-}

Unix-time

Project variables

Name

Description

Name

Description

{-Project.BrowserProfileFolder-}

Full path to profile-folder (or an empty string if profile-folder is not used).

{-Project.Directory-}

Template directory

{-Project.PluginDirectory-}

Plugin directory (if the executable template is a plugin)

{-Project.Name-}

Template name

{-Project.Proxy-}

The current proxy of the project.

{-Project.ProxyRules-}

Rule used from ProxyChecker

{-Project.LastExecutedActionElapsedTime-}

Time spent on the last executed action

{-Project.LastExecutedActionId-}

ID of the last performed action

{-Project.LastErrorComment-}

The text of the last action that ended with an error

Profile

Name

Description

Name

Description

{-Profile.Age-}

Age

{-Profile.BornDay-}

Birthday

{-Profile.BornYear-}

Year of birth

{-Profile.BornMonth-}

Month of birth

{-Profile.Name-}

Name

{-Profile.Surname-}

Surname

{-Profile.NickName-}

Nickname

{-Profile.Email-}

E-mail address

{-Profile.EmailPassword-}

Mailbox password

{-Profile.Login-}

Login

{-Profile.Password-}

Password

{-Profile.Sex-}

Gender

{-Profile.Language-}

Language

{-Profile.Country-}

Country

{-Profile.Town-}

City

{-Profile.Region-}

Region

{-Profile.ZipCode-}

Index

{-Profile.SecretQuestionAnswer1-}

The answer to security question # 1

{-Profile.SecretQuestionAnswer2-}

The answer to security question # 2

{-Profile.AvailScreenHeight-}

Height of the generated screen (excluding the taskbar)

{-Profile.AvailScreenWidth-}

The width of the generated screen (excluding the taskbar)

{-Profile.ScreenSizeHeight-}

Generated Screen Height

{-Profile.ScreenSizeWidth-}

Generated screen width

{-Profile.ScreenLeft-}

The distance, in pixels, from the left edge of the screen to the browser window.

{-Profile.ScreenTop-}

The distance, in pixels, from the top of the screen to the browser window.

{-Profile.OuterHeight-}

 

 

Deprecated variables.

{-Profile.OuterWidth-}

{-Profile.OuterHeightShift-}

{-Profile.OuterWidthShift-}

{-Profile.HTTPAccept-}

HTTP header Accept
Indicates which content types, expressed as MIME types, the client (browser) can understand.

{-Profile.AcceptCharset-}

HTTP header Accept-Charset
Tells the character encoding the browser is willing to accept.

{-Profile.AcceptLanguage-}

HTTP header Accept-Language
Tells the server about all languages that we prefer when reading the web-page.

{-Profile.AcceptEncoding-}

HTTP header Accept-Encoding
The list of supported methods for encoding the content of an entity during transmission.

{-Profile.UserAgent-}

Generated browser User-Agent string

{-Profile.UserAgentAppCodeName-}

Individual elements of the generated User-Agent string

{-Profile.UserAgentAppName-}

{-Profile.UserAgentAppVersion-}

{-Profile.UserAgentBrowserLanguage-}

{-Profile.UserAgentCpuClass-}

{-Profile.UserAgentLanguage-}

{-Profile.UserAgentOsCpu-}

{-Profile.UserAgentPlatform-}

{-Profile.UserAgentProduct-}

{-Profile.UserAgentProductSub-}

{-Profile.None-}

Deprecated variable

System Variables (Environment)

String

Other