{
	"suites": {
		"Introduction": {
			"screenshots": {
				"export-import": [
					{"action": "setScreenshotsImagePath", "path": "Images/AutomaticScreenshots"},
					{"action": "setScreenshotsRstPath", "path": "Images/AutomaticScreenshots"},

					{"comment": "************************************************************************************"},
					{"comment": "Export"},
					{"comment": "************************************************************************************"},
					{"action": "resizeWindow", "width": 820, "height": 750},
					{"action": "see", "text": "List"},
					{"action": "click", "link": "List"},
					{"action": "click", "link": ".t3js-topbar-button-modulemenu"},
					{"action": "openPageTreePath", "path": ["Congratulations", "Content Examples", "Text", "Text with Teaser"]},
					{"action": "drawBadge", "selector": "//*[@id='typo3-pagetree-treeContainer']//*[text()='Text with Teaser']/..", "label": "1", "position": "left"},
					{"action": "clickWithRightButton", "cssOrXPath": "//*[@id='typo3-pagetree-treeContainer']//*[text()='Text with Teaser']/.."},
					{"action": "waitForElement", "element": "#contentMenu0", "timeout": 5},
					{"action": "click", "link": "//*[@id='contentMenu0']//*[contains(text(), 'More options...')]"},
					{"action": "waitForElement", "element": "#contentMenu1", "timeout": 5},
					{"action": "moveMouseOver", "cssOrXPath": "//*[@id='contentMenu1']//*[contains(text(), 'Export')]"},
					{"action": "drawBox", "selector": "//*[@id='contentMenu1']//*[contains(text(), 'Export')]"},
					{"action": "drawBadge", "selector": "//*[@id='contentMenu1']//*[contains(text(), 'Export')]", "label": "2", "position": "right"},
					{
						"action": "makeScreenshotOfWindow",
						"fileName": "ContextMenuExport",
						"altText": "Select \"More options... > Export\"",
						"captionText": "Select \"More options... > Export\""
					},
					{"action": "clearDrawings"},
					{"action": "click", "link": "//*[@id='contentMenu1']//*[contains(text(), 'Export')]"},
					{"action": "click", "link": ".scaffold-content-navigation-switcher-close"},
					{"action": "switchToContentFrame"},
					{"action": "waitForText", "text": "Export pagetree configuration", "timeout": 5},
					{"action": "resizeWindow", "width": 592, "height": 750},
					{"action": "resizeToFullPage"},
					{
						"action": "makeScreenshotOfElement",
						"selector": "#export-configuration",
						"fileName": "ImpExp",
						"altText": "Export module of current TYPO3",
						"captionText": "Export module of current TYPO3"
					},
					{"action": "resizeWindow", "width": 820, "height": 750},
					{"action": "resizeToFullPage"},
					{"action": "selectOption", "select": "select[name='tx_impexp[pagetree][levels]']", "option": "999"},
					{"action": "selectOption", "select": "select[name='tx_impexp[external_ref][tables][]']", "option": ["_ALL"]},
					{"action": "drawBox", "selector": "#export-configuration"},
					{"action": "drawBadge", "selector": "#export-configuration", "label": "1", "position": "top"},
					{"action": "drawBadge", "selector": "#export-configuration input[value='Update']", "label": "2", "position": "right"},
					{"action": "drawBox", "selector": "#export-configuration input[value='Update']"},
					{"action": "moveMouseOver", "cssOrXPath": "#export-configuration input[value='Update']"},
					{
						"action": "makeScreenshotOfWindow",
						"fileName": "ConfigureExport",
						"altText": "Configure the data to be exported",
						"captionText": "Configure the data to be exported"
					},
					{"action": "clearDrawings"},
					{"action": "click", "link": "Update"},
					{"action": "waitForElementNotVisible", "element": "#nprogress"},
					{"action": "resizeToFullPage"},
					{"action": "drawBadge", "selector": "//abbr[contains(text(), 'Tree')]/../../../..", "label": "1", "position": "top"},
					{"action": "drawBox", "selector": "//abbr[contains(text(), 'Tree')]/../../../.."},
					{"action": "drawBadge", "selector": ".t3js-impexp-preview", "label": "2", "position": "top"},
					{"action": "drawBox", "selector": ".t3js-impexp-preview"},
					{"action": "drawBadge", "selector": "#export-configuration input[value='Update']", "label": "3", "position": "right"},
					{"action": "drawBox", "selector": "#export-configuration input[value='Update']"},
					{"action": "drawBadge", "selector": "//a[contains(text(), 'Advanced Options')]", "label": "4", "position": "top"},
					{
						"action": "makeScreenshotOfWindow",
						"fileName": "CheckExport",
						"altText": "Check the exported data",
						"captionText": "Check the exported data"
					},
					{"action": "clearDrawings"},
					{"action": "click", "link": "Advanced Options"},
					{"action": "resizeWindow", "width": 820, "height": 750},
					{"action": "drawBox", "selector": "#export-advancedoptions"},
					{"action": "drawBadge", "selector": "#export-advancedoptions", "label": "1", "position": "top"},
					{"action": "drawBadge", "selector": "#export-advancedoptions input[value='Update']", "label": "2", "position": "right"},
					{"action": "drawBox", "selector": "#export-advancedoptions input[value='Update']"},
					{"action": "drawBadge", "selector": "//a[contains(text(), 'File & Preset')]", "label": "3", "position": "top"},
					{
						"action": "makeScreenshotOfWindow",
						"fileName": "SelectAdvancedExportOptions",
						"altText": "Select advanced export options",
						"captionText": "Select advanced export options"
					},
					{"action": "clearDrawings"},
					{"action": "click", "link": "File & Preset"},
					{"action": "resizeWindow", "width": 820, "height": 1000},
					{"action": "fillField", "field": "input[name='tx_impexp[filename]']", "value": "MyExport"},
					{"action": "drawBadge", "selector": "#export-filepreset", "label": "1", "position": "top"},
					{"action": "drawBox", "selector": "#export-filepreset"},
					{"action": "drawBadge", "selector": "input[name='tx_impexp[download_export]']", "label": "2.a", "position": "bottom"},
					{"action": "drawBox", "selector": "input[name='tx_impexp[download_export]']"},
					{"action": "drawBadge", "selector": "input[name='tx_impexp[save_export]']", "label": "2.b", "position": "bottom"},
					{"action": "drawBox", "selector": "input[name='tx_impexp[save_export]']"},
					{
						"action": "makeScreenshotOfWindow",
						"fileName": "DownloadExport",
						"altText": "Download the export data",
						"captionText": "Download the export data"
					},
					{"action": "clearDrawings"},
					{"action": "click", "link": "input[name='tx_impexp[save_export]']"},
					{"action": "waitForElement", "element": ".alert.alert-success", "timeout": 5},
					{"action": "switchToMainFrame"},
					{"action": "click", "link": ".scaffold-content-navigation-switcher-open"},
					{"action": "click", "link": ".t3js-topbar-button-modulemenu"},
					{"action": "reloadBackend"},

					{"comment": "************************************************************************************"},
					{"comment": "Preset"},
					{"comment": "************************************************************************************"},
					{"action": "see", "text": "List"},
					{"action": "click", "link": "List"},
					{"action": "click", "link": ".t3js-topbar-button-modulemenu"},
					{"action": "openPageTreePath", "path": ["Congratulations", "Content Examples", "Text", "Text with Teaser"]},
					{"action": "clickWithRightButton", "cssOrXPath": "//*[@id='typo3-pagetree-treeContainer']//*[text()='Text with Teaser']/.."},
					{"action": "waitForElement", "element": "#contentMenu0", "timeout": 5},
					{"action": "click", "link": "//*[@id='contentMenu0']//*[contains(text(), 'More options...')]"},
					{"action": "waitForElement", "element": "#contentMenu1", "timeout": 5},
					{"action": "click", "link": "//*[@id='contentMenu1']//*[contains(text(), 'Export')]"},
					{"action": "click", "link": ".scaffold-content-navigation-switcher-close"},
					{"action": "switchToContentFrame"},
					{"action": "waitForText", "text": "Export pagetree configuration", "timeout": 5},
					{"action": "click", "link": "File & Preset"},
					{"action": "selectOption", "select": "select[name='preset[select]']", "option": "1"},
					{"action": "fillField", "field": "input[name='tx_impexp[preset][title]']", "value": "My Preset"},
					{"action": "drawBadge", "selector": "input[name='tx_impexp[preset][title]']", "label": "A-1", "position": "bottom"},
					{"action": "drawBox", "selector": "input[name='tx_impexp[preset][title]']"},
					{"action": "drawBadge", "selector": "button[name='preset[save]']", "label": "A-2", "position": "right"},
					{"action": "drawBox", "selector": "button[name='preset[save]']"},
					{"action": "drawBadge", "selector": "select[name='preset[select]']", "label": "B-1", "position": "top"},
					{"action": "drawBox", "selector": "select[name='preset[select]']"},
					{"action": "drawBadge", "selector": "input[name='preset[load]']", "label": "B-2", "position": "top"},
					{"action": "drawBox", "selector": "input[name='preset[load]']"},
					{
						"action": "makeScreenshotOfWindow",
						"fileName": "Presets",
						"altText": "Save or load an export preset",
						"captionText": "Save or load an export preset"
					},
					{"action": "cropScreenshot", "fileName": "Presets", "height": 465},
					{"action": "clearDrawings"},
					{"action": "switchToMainFrame"},
					{"action": "click", "link": ".scaffold-content-navigation-switcher-open"},
					{"action": "click", "link": ".t3js-topbar-button-modulemenu"},
					{"action": "reloadBackend"},

					{"comment": "************************************************************************************"},
					{"comment": "Import"},
					{"comment": "************************************************************************************"},
					{"action": "resizeWindow", "width": 820, "height": 750},
					{"action": "see", "text": "List"},
					{"action": "click", "link": "List"},
					{"action": "click", "link": ".t3js-topbar-button-modulemenu"},
					{"action": "openPageTreePath", "path": ["Congratulations", "Content Examples"]},
					{"action": "drawBadge", "selector": "//*[@id='typo3-pagetree-treeContainer']//*[text()='Content Examples']/..", "label": "1", "position": "left"},
					{"action": "clickWithRightButton", "cssOrXPath": "//*[@id='typo3-pagetree-treeContainer']//*[text()='Content Examples']/.."},
					{"action": "waitForElement", "element": "#contentMenu0", "timeout": 5},
					{"action": "click", "link": "//*[@id='contentMenu0']//*[contains(text(), 'More options...')]"},
					{"action": "waitForElement", "element": "#contentMenu1", "timeout": 5},
					{"action": "moveMouseOver", "cssOrXPath": "//*[@id='contentMenu1']//*[contains(text(), 'Import')]"},
					{"action": "drawBox", "selector": "//*[@id='contentMenu1']//*[contains(text(), 'Import')]"},
					{"action": "drawBadge", "selector": "//*[@id='contentMenu1']//*[contains(text(), 'Import')]", "label": "2", "position": "right"},
					{
						"action": "makeScreenshotOfWindow",
						"fileName": "ContextMenuImport",
						"altText": "Select \"More options... > Import\"",
						"captionText": "Select \"More options... > Import\""
					},
					{"action": "clearDrawings"},
					{"action": "click", "link": "//*[@id='contentMenu1']//*[contains(text(), 'Import')]"},
					{"action": "click", "link": ".scaffold-content-navigation-switcher-close"},
					{"action": "switchToContentFrame"},
					{"action": "resizeWindow", "width": 820, "height": 450},
					{"action": "click", "link": "Upload"},
					{"action": "attachFile", "field": "input[name='upload_1']", "filename": "fileadmin/user_upload/_temp_/importexport/MyExport.xml"},
					{"action": "drawBox", "selector": "input[name='upload_1']"},
					{"action": "drawBadge", "selector": "input[name='upload_1']", "label": "1", "position": "right"},
					{"action": "drawBox", "selector": "input[name='_upload']"},
					{"action": "drawBadge", "selector": "input[name='_upload']", "label": "2", "position": "right"},
					{"action": "drawBadge", "selector": "//a[contains(text(), 'Import')]", "label": "3", "position": "top"},
					{
						"action": "makeScreenshotOfWindow",
						"fileName": "UploadImport",
						"altText": "Upload the export data",
						"captionText": "Upload the export data"
					},
					{"action": "clearDrawings"},
					{"action": "click", "link": "Import"},
					{"action": "resizeWindow", "width": 820, "height": 810},
					{"action": "selectOption", "select": "select[name='tx_impexp[file]']", "option": "1:/user_upload/_temp_/importexport/MyExport.xml"},
					{"action": "checkOption", "option": "input[type=checkbox][name='tx_impexp[do_update]']"},
					{"action": "drawBox", "selector": "input[type=checkbox][name='tx_impexp[do_update]']"},
					{"action": "drawArrow", "selector": "input[type=checkbox][name='tx_impexp[do_update]']", "position": "right-bottom"},
					{
						"action": "makeScreenshotOfWindow",
						"fileName": "UpdateContent",
						"altText": "Update content in an existing structure",
						"captionText": "Update content in an existing structure"
					},
					{"action": "uncheckOption", "option": "input[type=checkbox][name='tx_impexp[do_update]']"},
					{"action": "clearDrawings"},
					{"action": "checkOption", "option": "input[type=checkbox][name='tx_impexp[notShowDiff]']"},
					{"action": "drawBox", "selector": "select[name='tx_impexp[file]']"},
					{"action": "drawBadge", "selector": "select[name='tx_impexp[file]']", "label": "1", "position": "left"},
					{"action": "drawBox", "selector": "#import-import"},
					{"action": "drawBadge", "selector": "#import-import", "label": "2", "position": "top"},
					{"action": "drawBox", "selector": "input[value='Preview']"},
					{"action": "drawBadge", "selector": "input[value='Preview']", "label": "3", "position": "left"},
					{
						"action": "makeScreenshotOfWindow",
						"fileName": "ConfigureImport",
						"altText": "Configure the import",
						"captionText": "Configure the import"
					},
					{"action": "clearDrawings"},
					{"action": "click", "link": "Preview"},
					{"action": "waitForElementNotVisible", "element": "#nprogress"},
					{"action": "resizeToFullPage"},
					{"action": "drawBadge", "selector": ".t3js-impexp-preview", "label": "1", "position": "top"},
					{"action": "drawBox", "selector": ".t3js-impexp-preview"},
					{"action": "drawBadge", "selector": "#import-import", "label": "2", "position": "top"},
					{"action": "drawBox", "selector": "#import-import"},
					{"action": "drawBadge", "selector": "input[value='Preview']", "label": "3", "position": "left"},
					{"action": "drawBox", "selector": "input[value='Preview']"},
					{
						"action": "makeScreenshotOfWindow",
						"fileName": "CheckAndPerformImport",
						"altText": "Check and perform the import",
						"captionText": "Check and perform the import"
					},
					{"action": "clearDrawings"}
				]
			}
		}
	}
}
