Skip to content

Commit 59b79ee

Browse files
committed
DOC(More standardised documents)
1 parent 719b4b0 commit 59b79ee

23 files changed

+85
-44
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ See LICENCE.txt for details.
3030
* [UIAutomation for Powershell](http://uiautomation.codeplex.com/documentation)
3131
* [TestStack.White](https://github.com/TestStack/White)
3232
* [UI Automation - A wrapper around Microsoft's UI Automation libraries.](https://github.com/vijayakumarsuraj/UIAutomation)
33-
33+
* [Automation Spy Blog entry](http://www.automationspy.com/post-25_12_2014.html)
3434
* [Functional GUI Testing Automation Patterns](https://www.infoq.com/articles/gui-automation-patterns)
3535

docs/button.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#Discovery
1+
# Discovery
22
* See [Element Discovery](element-discovery.md)
33

4-
:Methods
4+
# Methods
55

6-
:Name
7-
:Value
8-
:Click
9-
:Focus
6+
## Name
7+
## Value
8+
## Click
9+
##Focus

docs/checkbox.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Discovery
2+
* See [Element Discovery](element-discovery.md)
3+
14
```
25
AutomationCheckBox check = window.getCheckBox(0);
36
check.toggle();
@@ -10,9 +13,9 @@ try {
1013
}
1114
```
1215

13-
: Methods
16+
# Methods
1417

15-
:Name
16-
:Value
17-
:Toggle
18-
:ToggleState
18+
## Name
19+
## Value
20+
## Toggle
21+
## ToggleState

docs/combobox.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
# Discovery
2+
* See [Element Discovery](element-discovery.md)
3+
14
```
25
AutomationComboBox cb1 = window.getCombobox("AutomatedCombobox1");
36
String oldTxt = cb1.text();
47
cb1.setText("Replacements");
58
String txt = cb1.text();
6-
```
9+
```
10+
11+
# Methods

docs/custom.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
The Custom control type covers a multitude of non-standard controls. Mostly these have been wrapped up in a single type - Custom, but where specific implementations are known, then sub-classes of Custom have been created - for example [Word](Word) has a AutomationDocumentPage, which is different enough from a standard Custom control to have a specific implementation.
1+
# Discovery
2+
* See [Element Discovery](element-discovery.md)
3+
4+
The Custom control type covers a multitude of non-standard controls. Mostly these have been wrapped up in a single
5+
type - Custom, but where specific implementations are known, then sub-classes of Custom have been created - for
6+
example [Word](Word) has a AutomationDocumentPage, which is different enough from a standard Custom
7+
control to have a specific implementation.

docs/developer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,4 @@ The controls that have been implemented reflect the requirements for automating
134134
* [Events](events.md)
135135

136136
## Other languages
137-
* [Scala](scala.md)
137+
* [Scala](scala.md)

docs/document.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Discovery
2+
* See [Element Discovery](element-discovery.md)
3+
14
```
25
AutomationDocument document = applicationWindow.getDocument(0);
36

docs/editbox.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,2 @@
1-
Edit boxes can be located by index, or by name.
2-
3-
```
4-
AutomationEditBox user = window.getEditBox(0);
5-
user.setText("USER1");
6-
```
7-
8-
```
9-
AutomationEditBox user = window.getEditBox("edtBox1");
10-
user.setText("USER1");
11-
```
1+
# Discovery
2+
* See [Element Discovery](element-discovery.md)

docs/grids.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
## DataGrid
1+
# Discovery
2+
* See [Element Discovery](element-discovery.md)
23

3-
### WFP
4+
## WFP
45
```
56
AutomationDataGrid grid = window.getDataGrid(0);
67
AutomationDataGridCell cell = grid.getItem(0,0);
78
String itemName = item.name();
89
```
910

10-
### Delphi
11+
## Delphi
1112

1213
The [DelphiUIAutomation](https://github.com/markhumphreysjhc/DelphiUIAutomation) project introduced some Delphi controls that implement IUIAutomation providers, allowing them to be accessed by automation. The TAutomatedStringGrid is one of these, as the base Delphi (as of XE5 at least) control does not implement the Grid or Table interfaces and so is opaque to automation. In order to get the element associated with the specific TAutomationStringGrid, then this is done in the following manner.
1314

docs/hyperlink.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Discovery
2+
* See [Element Discovery](element-discovery.md)
3+
14
```
25
AutomationHyperlink link = window.getHyperlink(0);
36
link.click();

0 commit comments

Comments
 (0)