Browser Automation
By automating the browser, it is possible to simulate the browser operations performed by the user and automatically take screenshots. For example, if you want to automatically enter your username and password on a site that requires user authentication and take a screenshot after logging in. Another example is when you want to automatically search a word on a site, and take a screenshot after the screen transitions, the browser automation function is very useful.
Creating new automation
To automate the browser and take screenshots, you need to create a new automation. The following is an example of automating the browser, simulating the user's browser operations, and then take the screenshots.
Click on [create a new automation]. Set the screenshot flow as follows in [Update screenshot flow] on the modal screen. If you would like to preview the flow while creating it, click on [Preview this flow] button on the right pane of the screen.
Below are the 2 use cases of using Browser Automation.
Use Case 1: Entering your username and password on StageCrew login screen and taking a screenshot after logging in.
Use Case 2: To automate searching for a service (Amazon Route 53) on AWS Health Dashboard (https://health.aws.amazon.com/health/status) and getting a screenshot.
Entering your username and password on StageCrew login screen and taking a screenshot after logging in.
Step1: Accessing to URL
Set [Function] to [Go to (Go to a specific page)].
Set [Argument] to [Built-in (Select from built-in)].
Set [Built-in variable] to [URL (Use generated URL)].
Click on [Done].

Step2: Entering the email address in the email field after transiting to the URL.
Set [Function] to [Type (Simulate user's typing activity)].
Set [Argument] to [Selector(CSS Selector)].
Set [Value] to
#email-address. ※Refer to below for how to obtain [email-address].Set [Wait for] to [Wait until(Wait until a certain event)].
Set [Life Cycle] to [Network Idle 2(Network Idle2)].
Set [Argument] to [Built-in(Select from built-in)].
Set [Built-in variable] to [Username (Set in screenshot settings)].
Click on [Done].
How to obtain [email-address]
Open the StageCrew login page, right-click in the email field, and select [Verify].

Right click on the highlighted area in the elements tab of devtools and select Copy Selector.

Paste the selection made with Copy Selector into the [Value] field. (Paste it and it becomes
#email-addressin this case).
Step3: Enter the password in the password field after the URL transition
Set [Function] to [Type (Simulate user's typing activity)].
Set [Argument] to[Selector(CSS Selector)].
Set [Value] to
#password. ※Refer to below for how to obtain [password].Set [Wait for] to [Wait until(Wait until a certain event)].
Set [Life Cycle] to [Network Idle 2(Network Idle2)].
Set [Argument] to [Built-in(Select from built-in)].
Set [Built-in variable] to [Password (Set in screenshot settings)].
Click on [Done].
How to obtain [password]
Open the StageCrew login page, right-click in the password field, and select [Verify].

Right-click on the highlighted part of the elements tab of devtools and select Copy Selector.

Paste the selection made with Copy Selector into the [Value] field.(Paste it and it becomes
#passwordin this case).

Step4: Click on signin button
Set [Function] to [Click(Simulate user's clicking activity)].
Set [Argument] to [Selector(CSS Selector)].
Set [Value] to
#__next > div.relative.w-full.h-screen.flex.flex-col.align-center.justify-center.pwx-auth-bg-color > div.flex.grow.pt-8.pb-16.items-start.justify-center.gap-2.overflow-scroll > div > div > form > div > div.space-y-6 > div > button※Refer to below for how to obtain [Selector].Set [Wait for] to [Wait until(Wait until a certain event)].
Set [Life Cycle] to [Network Idle 2(Network Idle2)].
Click on [Done].
How to obtain [Selector]
Open the StageCrew login page, right-click on the [signin] button, and select [Inspect].

Right-click on the highlighted part of the elements tab of devtools and select Copy Selector.

Paste the selection made with Copy Selector into the [Value] field. (Paste it and it becomes
#__next > div.relative.w-full.h-screen.flex.flex-col.align-center.justify-center.pwx-auth-bg-color > div.flex.grow.pt-8.pb-16.items-start.justify-center.gap-2.overflow-scroll > div > div > form > div > div.space-y-6 > div > buttonin this case).

※ In the "Preview screen flow" URL field, enter your StageCrew URL, StageCrew email in the username field, and StageCrew password in the password field.
To automate searching for a service (Amazon Route 53) on AWS Health Dashboard (https://health.aws.amazon.com/health/status) and getting a screenshot.
Step1: Accessing to URL
Set [Function] to [Go to (Go to a specific page)].
Set [Argument] to [Built-in (Select from built-in)].
Set [Built-in variable] to [URL (Use generated URL)].
Set [Wait for] to [Wait until(Wait until a certain event)].
Set [Life Cycle] to [Network Idle 2(Network Idle2)].
Click on [Done].

Step2: Entering the Service or Region in the email field after transiting to the URL.
Set [Function] to [Type (Simulate user's input activity)].
Set [Argument] to [XPath(XML path language)].
Set [Value] to
/html/body/div[2]/div/div[2]/div/div/main/div/div[2]/div[2]/div/div/div[1]/div[2]/div[2]/div[2]/div[1]/div/div[2]/div/div/div[1]/div/div[1]/div/div/div/div[1]/div/input※Refer to below for how to obtain [XPath].Set [Wait for] to [Wait until(Wait until a certain event)].
Set [Life Cycle] to [Network Idle 2(Network Idle2)].
Set [Argument] to [Static(Static value)].
Set [Value] to [Service = Amazon Route 53].
Click on [Done].

How to obtain [XPath]
-Open the AWS Health Dashboard (https://health.aws.amazon.com/health/status), right click in the search field and select [Verify].

Right click on the highlighted area in the elements tab of devtools and select Copy full XPath.

Paste the selection made with Copy full XPath into the [Value] field.(Paste it and it becomes
/html/body/div[2]/div/div[2]/div/div/main/div/div[2]/div[2]/div/div/div[1]/div[2]/div[2]/div[2]/div[1]/div/div[2]/div/div/div[1]/div/div[1]/div/div/div/div[1]/div/inputin this case).

Step3: Click on enter key
Set [Function] to 「Enter(Simulate enter key-press)」.
Click on [Done].
※ Enter the AWS Health Dashboard URL (https://health.aws.amazon.com/health/status) in the [Preview Screenshot Flow] URL field.
💡Tip! If the above does not work, Try deleting the numeral part with [], such as [1]. Example /html/body/div[3]/div[1]/div[1]/div/div/form/div[1]/div/div/input → /html/body/div/div/div/div/form/div/div/input
Go to
Go to a specific page
Session Manager
Establish secure tunnel to target host
Click
Simulate user's clicking activity
Type
Simulate user's typing activity
Wait for selector
Wait for CSS selector
Wait for navigation
Wait for page navigation
Wait for timeout
Wait for timeout
Enter
Simulate enter key-press
Tab
Simulate tab key-press
Send character
Send character
Go to href
Navigate to the URL specified in the href attribute of a tag
Wait and click
Wait for selector and type
Wait and type
Wait for selector and type
Sleep
Wait for until condition
Arrow up
Simulate arrow up key-press
Arrow down
Simulate arrow down key-press
Arrow left
Simulate arrow left key-press
Arrow right
Simulate arrow right key-press
Selector
CSS Selector
XPath
XPath (XML path language)
Static
Static value
Built in
Select from built-in
Screenshot option extension
Configured in screenshot settings
URL
Use generated URL
Username
Set in screenshot settings
Password
Set in screenshot settings
Timeout
Wait for timeout
Wait until
Wait until a certain event
Load
Load
Dom Content Loaded
Dom content loaded (Option to use external resources such as images and style sheets without waiting for the complete page to load)
Network Idle 0
Network Idle 0 (Wait at least 500 milliseconds until there is 0 network connection)
Network Idle 2
Network Idle 2 (Wait at least 500 milliseconds until there are fewer than two network connections)
最終更新