Octoparse is a web scrapping tool used to extract web data without coding.You can use the free version where you can work up to ten task or paid subscription with more service included.
Let's see some examples of writing Gherkin for Octoparse application.
Feature: As a user checking the Login and logout page.
Scenario: to login the application
Given the application is installed
And the user is in the Login page
When the user enters valid username and password
And clicks Login button
Then the user logs in the application
Scenario: forgot password
Given the user is in application login page
When the user enters valid username and clicks forget password
Then it should redirect to forget password in application web page where user needs to enter username and email and click “Submit”
Scenario: invalid password
Given the user is in application login page
When the user enters valid username and wrong password
Then “the username or password is incorrect” message pops up in the login page
Scenario: remember password
Given the user is in the Login page
When the user enters valid username and password
And selects the “Remember Password” checkbox before he clicks the Login button
Then the user password is auto filled during his next sign in
Scenario: auto login
Given the user checked the auto login checkbox in his previous sign in
When the user launches the application
Then the login page window pops up with a message “cancel Auto Login” with a 5 second timer
And then opens the application home screen
Scenario: cancel auto login
Given the user checked the auto login checkbox in his previous sign in
And launches the application
When the login page window pops up with a message “cancel Auto Login” with a 5 second timer
Then the user should click “cancel auto login” before the timer ends
Scenario: To sign out or exit the application
Given the user is in home screen of the application
When the user clicks Exit file “red x button” on top left corner to logout the application
Then the user gets a popup message “Are you sure you want to exit?”
And the user has to click “confirm” to exit
Feature: to create a task as a user and extract data in local run
Scenario: to build a new task
Given the user has logged in the application
When the user enters the valid web page URL in the home screen search bar
And clicks Start
Then new tab is opened next to home screen and the web page starts to load in the built-in browser in the work space
Scenario: to detect the data when loading the web page
Given the user logged in the application
When the user entered valid web page URL in search bar and press enter in the home screen
Then the new task begins and the application starts to detect data from the built in web page under the tip window
Scenario: to check auto detect is completed
Given the user entered the web page URL in search bar
And clicks start
when the web page starts loading in work space
Then it should pop up message saying 100% auto detect completed
Scenario: to fetch data as per users need
Given the user entered the valid web page URL in the home screen
when the user didn’t get the expected data from auto detect
Then the user can click “not the right webpage” to modify according to his needs
Scenario: to feed the input for text box in the webpage
Given the user loaded the webpage in work space
When the user double clicks the text box in the built in browser
And selects “enter text” in Tips window
Then the user can enter the text and confirm the action
Scenario: Text box added in workflow
Given the user clicked the textbox in the in-built browser page
And entered the text in Action tip window and clicked "confirm"
Then the user can see text box added in his workflow
Scenario: related findings in Tips window
Given the user loaded the webpage in workspace
When the user clicks for example textbox in the webpage
Then the user should get related findings in Tip window like “Search with Keywords”
Scenario: to create a Workflow
Given the user created a task and performs some action in built-in browser workspace page
When the user got the data to be scraped
Then the user can click Create workflow button to create the work flow which can be seen in the right side of work space
Feature: run the task in local device
Scenario: To run the task on local device
Given the user created the workflow
When the user clicks “Run on your device”
Then the application starts to run the page and stores the extracted data in the local device
Scenario: to save the exported data in excel sheet in the local device
Given the user run the work flow on local device
When the user wants to store the extracted data in excel sheet
Then the user should select the excel sheet radio button and click ok
Scenario: to open the extracted data for the local run
Given the user did a local run
When the user the extracted the data in the device
Then the user can store the data to the local device and open the file
Scenario: to clear data and run the task
Given the user created the workflow for the webpage
When the user wants to run the task again
Then the user should select” Clear data & run” to delete the data from previous run, from the Tips window
Scenario: Auto detect web page data
Given the user loaded the webpage
And created the workflow
When the user wants to detect the data automatically
Then the user can click “Auto detect web page data” to extract the data and data can viewed in the data preview window
Scenario: to check the task in Dashboard
Given the user is in home screen page
When the user want to check all his task
Then the user should click Dashboard to check all his task
Scenario: Run completed window
Given the user created the workflow
When the user run the task in local device
Then the user should get “run completed” popup window after the task is completed.
Scenario: to create more than ten task in free version
Given the user already created ten task in the application
When the user tries to create a new task
Then the message pops up saying "Maximum task created"
Comments