public class CreatePageWindow extends Object implements DecisionWindow
| Constructor and Description |
|---|
CreatePageWindow() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the dialog and waits for the dialog to be closed.
|
void |
confirm()
Confirms the dialog and waits for the dialog to be closed.
|
void |
createPage(String title,
String exactTemplateName)
Fills the title field,
|
void |
createPage(String title,
String name,
String exactTemplateName)
Fills the CreatePageWindow's fields, selects the template and confirms the dialog.
|
List<String> |
getTemplatesNames() |
int |
getTemplatesNumber()
Returns the number of templates listed in CreatePageWindow.
|
boolean |
isDisplayed() |
CreatePageWindow |
selectNthTemplate(int i)
Selects nth template from the list in CreatePageWindow
|
CreatePageWindow |
selectTemplate(String exactTemplateName)
Selects the template that matches exactly the provided value.
|
CreatePageWindow |
selectTemplateContaining(String templateName)
Selects the template containing provided name.
|
CreatePageWindow |
typeName(String name)
Types the name of the created page.
|
CreatePageWindow |
typeTitle(String title)
Types the title of the created page.
|
CreatePageWindow |
waitToBeDisplayed()
Waits for the window to be displayed.
|
public boolean isDisplayed()
public CreatePageWindow waitToBeDisplayed()
public CreatePageWindow typeTitle(String title)
title - title of the created pagepublic CreatePageWindow typeName(String name)
name - of the created pagepublic CreatePageWindow selectTemplateContaining(String templateName)
templateName - partial template namepublic CreatePageWindow selectTemplate(String exactTemplateName)
exactTemplateName - exact template namepublic void confirm()
confirm in interface DecisionWindowpublic void cancel()
cancel in interface DecisionWindowpublic void createPage(String title, String name, String exactTemplateName)
title - title of the created pagename - name of the created pageexactTemplateName - exact template namepublic void createPage(String title, String exactTemplateName)
title - title of the created pageexactTemplateName - exact template namepublic int getTemplatesNumber()
public CreatePageWindow selectNthTemplate(int i)
i - index of the templateCopyright © 2016–2018 Cognifide Ltd.. All rights reserved.