summaryrefslogtreecommitdiff
path: root/python-automancy.spec
blob: 97b5840389cd8291015657985e690dbd9787e245 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
%global _empty_manifest_terminate_build 0
Name:		python-Automancy
Version:	0.5.12
Release:	1
Summary:	please add a summary manually as the author left a blank one
License:	MIT
URL:		https://github.com/iamtheblurr/automancy
Source0:	https://mirrors.aliyun.com/pypi/web/packages/f6/5a/c866998ee92be8169ef0591e3c6fe572a09eb6ef7988527e22b733e3f376/Automancy-0.5.12.tar.gz
BuildArch:	noarch

Requires:	python3-chronomancy
Requires:	python3-lxml
Requires:	python3-pytest
Requires:	python3-selenium
Requires:	python3-webvtt-py

%description
# Automancy
A Web UI Automation framework for Python, designed to simplify the functionality and features of Selenium.

## Motivation
Raise your hand if you've ever thought to yourself "Man... I really don't like how Selenium code is written, it's so ugly and strangely difficult to work with..."

No, nevermind, don't raise your hand, you'll just look weird, and I won't be able to see you anyway.

We all know it, Selenium is cumbersome to write, abstract in the not-so-fun way, difficult to read (thus to maintain), and rather fragile most of the time.

Automancy is meant to resolve these annoyances, regardless of if your intent is to scrape web pages, automate actions on a web portal, or create automated UI tests for a web app.

The intent of Automancy is to add a greater degree of sophisticated control to web based automation while reducing the syntactic complexity of these operations and providing a design pattern meant to facilitate anti-fragility.

If you treat input as error, automating away as much menial work for the operator as possible without taking away meaningful control, fundamentally, you are automating automation.

Hence, Automancy, the animation of automation.

![Stay awhile and listen](docs/images/stay-awhile-and-listen.jpg)

## Pre-requisites
You'll need to have your favorite browser webdriver located in a directory that is a part of the Python path variables.

That's it, pretty simple.

_(If you don't know where to find a WebDriver, or if you don't know what I'm talking about, you might need to study up on some lesser arcane magic first)_

## Installation

    pip install automancy

_(What?  You thought there would be more?)_

## First Example
There are many ways Automancy can be used, various styles of implementation supported, it all depends on the needs of your context.

This first example is intended to show a bit of executable code and to illustrate Automancy's flexibility in implementation.

We are going to automate a few actions on Wikipedia.  We want to see if anyone has written a page for Automancy yet.

**Special Note 1**: You might notice the `driver` object is not passed to any further object in the scope.  This is not an error.  Automancy includes the ability to detect and reference WebDriver instances automatically.  This will be discussed in greater detail elsewhere.

**Special Note 2**: The current version of Automancy requires the manual instantiation of a Selenium WebDriver object.  This will change before v1.0.0 is released.

Here we go, This example will be broken up into three parts and illustrate two simple ways of doing the same thing.
1. Go to the Wikipedia main page searching for 
2. Type "Automancy" into the search bar
3. Click on the search button / press enter
4. Check for the existence of an element on the results page.

### Part 1 -> Setup
```python
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from automancy import Button, Label, Page, TextInput

# Instantiate a Chrome WebDriver
driver = webdriver.Chrome(options=webdriver.ChromeOptions(), desired_capabilities=DesiredCapabilities.CHROME)
```

### Part 2-a -> Generating a Page model programmatically using the `.add(...)` method
This is the first of the two alternative methods described here for constructing a web UI model with Automancy.
```python
# Instantiate a Page object with the wikipedia main url
wikipedia = Page(url='https://en.wikipedia.org/wiki/Main_Page')

# Add the necessary Elementals to the wikipedia page.
wikipedia.add(Button('//input[@id="searchButton"]', 'Search Button', 'search_button'))
wikipedia.add(TextInput('//input[@id="searchInput"]', 'Search Input', 'search_input'))
wikipedia.add(Label('//p[@class="mw-search-nonefound"]', 'Not Found Text', 'not_found_text'))
```

### Part 2-b -> Defining a UI Model as a persistent class
This is the second alternate method of constructing a web UI model; either will work.
```python
class Wikipedia(Page):
    def __init__(self, url='https://en.wikipedia.org/wiki/Main_Page'):
        self.search_button = Button('//input[@id="searchButton"]', 'Search Button', 'search_button')
        self.search_input = TextInput('//input[@id="searchInput"]', 'Search Input', 'search_input')
        self.not_found_text = Label('//p[@class="mw-search-nonefound"]', 'Not Found Text', 'not_found_text')

wikipedia = Wikipedia()
```

### Part 3 -> Perform the actions
```python
# Go to the wikipedia main page
wikipedia.visit()

# Input the search text
wikipedia.search_input.write('Automancy')

# Click the search button
wikipedia.search_button.click()

# Check to see if the "not found" text still exists
if wikipedia.not_found_text.exists:
    print('Forever alone...')
```

### Considerations
The great thing about these two methods is that you can perform the same kinds of actions with the same commands independent of how you build your models.

Sometimes it might be advantageous to build a page model on the fly if you're in a situation where you've got extremely dynamic pages.  If this is the case, you could technically create many "components" (a-la React, Polymer, etc), and mirror your automation scripts to the UI design, adding objects to page models only as needed.

It might also be advantageous to construct more statically defined Page models as a class to mirror components or features in a web app, able to stand on its own, able to be extended easily, able to be included in a library of models representing an entire web UI, and able to have custom functions defined within it to string together multiple Elemental actions in a single call.

## How to Think About Automancy
Ecosystems & Elementals.  These are the two key terms employed within Automancy which sum up the design philosophy.  Once you understand the meaning of these two terms, you'll understand Automancy.

Here is a brief overview for simplicity's sake.  Further discussion can be found in the `docs/` directory.

### Ecosystems
Think of the term "ecosystem" in the natural sciences.  What is an ecosystem?  It's a domain of life generally speaking, a domain of complex entities interacting with each other, usually with some sort of hierarchical relationship between everything within the domain.

This analogy is used here in Automancy.  A single web page can be thought of as an ecosystem.

Simple ecosystems might only contain some text, a picture, and a button to interact with, while complex ecosystem might have animations, triggered DOM changes, modals, toast messages, video playback, etc.

The practice of Automancy is the practice of defining what exists in an ecosystem as a "model" of reality (or at least as close to it as you need).

### Elementals
If a web page is a complex ecosystem as in nature, you can think of what lives on a web page, the unique constituents of a DOM, as complex organisms, molecular structures, and atomic elements, embedded within each other as complexity decreases.

"**Elemental**", in Automancy, is the general term used for everything from a simple `Button` to a complex `HTML5VideoPlayer` object.

That said, "Elementals" are intended to be considered hierarchical in nature.  A `Form` molecule will naturally contain any number of "`TextInput`" and `Button` atoms, for example.

[comment]: <> (For this reason, Automancy considers this hierarchical structure for its module and directory path conventions.)

There are three `Elemental` types

- Atoms
- Molecules
- Organisms

**Atoms**: The least complex `Elemental`.  Each represents a single web element DOM object; a `<button`, or an `<a>`, but also checkbox, radio selector, or a text input DOM objects.

**Molecules**: Meant to be used when constructing models of DOM structures such as `<form>`, a modal, a dialogbox; they tend to be made up of Atom objects which they contain.

**Organisms**: The most complex `Elemental`, usually constructed out of many custom class objects and unique controls and internal options.  Organisms contain the means of constructing xpath selectors for their children DOM elements automatically.

## Wrapping it Up
Now you've seen a simple example of how Selenium can be simplified for the greater good.

There is much more to be said, however I feel it wise to keep this initial README.md simple enough to consume and leave you, the reader, desiring more juicy details.

Juicy details ye shall receive.

Inside the `docs/` directory is where ongoing documentation will appear.

This further documentation will take the following forms.

- Tutorials: First steps for a learner, meant to introduce concepts, build confidence, inspire, not distract, etc.
- How-Tos: Answers to specific questions about how to accomplish something in or with Automancy.
- References: Technical specification details for each class, similar to API reference documentation (but not garbage, I hope...)
- Discussions: High level conveyance of ideas, philosophies, and explanations for design choices.

I hope you'll enjoy utilizing Automancy as much as I've enjoyed creating it so far.  Please feel free to submit issues here on GitHub when you find them, it's always appreciated.

If you'd like to contribute to Automancy in any way, I'm pretty easy to reach.  The more people working on Automancy the better for all.

Thank you!


%package -n python3-Automancy
Summary:	please add a summary manually as the author left a blank one
Provides:	python-Automancy
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-pip
%description -n python3-Automancy
# Automancy
A Web UI Automation framework for Python, designed to simplify the functionality and features of Selenium.

## Motivation
Raise your hand if you've ever thought to yourself "Man... I really don't like how Selenium code is written, it's so ugly and strangely difficult to work with..."

No, nevermind, don't raise your hand, you'll just look weird, and I won't be able to see you anyway.

We all know it, Selenium is cumbersome to write, abstract in the not-so-fun way, difficult to read (thus to maintain), and rather fragile most of the time.

Automancy is meant to resolve these annoyances, regardless of if your intent is to scrape web pages, automate actions on a web portal, or create automated UI tests for a web app.

The intent of Automancy is to add a greater degree of sophisticated control to web based automation while reducing the syntactic complexity of these operations and providing a design pattern meant to facilitate anti-fragility.

If you treat input as error, automating away as much menial work for the operator as possible without taking away meaningful control, fundamentally, you are automating automation.

Hence, Automancy, the animation of automation.

![Stay awhile and listen](docs/images/stay-awhile-and-listen.jpg)

## Pre-requisites
You'll need to have your favorite browser webdriver located in a directory that is a part of the Python path variables.

That's it, pretty simple.

_(If you don't know where to find a WebDriver, or if you don't know what I'm talking about, you might need to study up on some lesser arcane magic first)_

## Installation

    pip install automancy

_(What?  You thought there would be more?)_

## First Example
There are many ways Automancy can be used, various styles of implementation supported, it all depends on the needs of your context.

This first example is intended to show a bit of executable code and to illustrate Automancy's flexibility in implementation.

We are going to automate a few actions on Wikipedia.  We want to see if anyone has written a page for Automancy yet.

**Special Note 1**: You might notice the `driver` object is not passed to any further object in the scope.  This is not an error.  Automancy includes the ability to detect and reference WebDriver instances automatically.  This will be discussed in greater detail elsewhere.

**Special Note 2**: The current version of Automancy requires the manual instantiation of a Selenium WebDriver object.  This will change before v1.0.0 is released.

Here we go, This example will be broken up into three parts and illustrate two simple ways of doing the same thing.
1. Go to the Wikipedia main page searching for 
2. Type "Automancy" into the search bar
3. Click on the search button / press enter
4. Check for the existence of an element on the results page.

### Part 1 -> Setup
```python
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from automancy import Button, Label, Page, TextInput

# Instantiate a Chrome WebDriver
driver = webdriver.Chrome(options=webdriver.ChromeOptions(), desired_capabilities=DesiredCapabilities.CHROME)
```

### Part 2-a -> Generating a Page model programmatically using the `.add(...)` method
This is the first of the two alternative methods described here for constructing a web UI model with Automancy.
```python
# Instantiate a Page object with the wikipedia main url
wikipedia = Page(url='https://en.wikipedia.org/wiki/Main_Page')

# Add the necessary Elementals to the wikipedia page.
wikipedia.add(Button('//input[@id="searchButton"]', 'Search Button', 'search_button'))
wikipedia.add(TextInput('//input[@id="searchInput"]', 'Search Input', 'search_input'))
wikipedia.add(Label('//p[@class="mw-search-nonefound"]', 'Not Found Text', 'not_found_text'))
```

### Part 2-b -> Defining a UI Model as a persistent class
This is the second alternate method of constructing a web UI model; either will work.
```python
class Wikipedia(Page):
    def __init__(self, url='https://en.wikipedia.org/wiki/Main_Page'):
        self.search_button = Button('//input[@id="searchButton"]', 'Search Button', 'search_button')
        self.search_input = TextInput('//input[@id="searchInput"]', 'Search Input', 'search_input')
        self.not_found_text = Label('//p[@class="mw-search-nonefound"]', 'Not Found Text', 'not_found_text')

wikipedia = Wikipedia()
```

### Part 3 -> Perform the actions
```python
# Go to the wikipedia main page
wikipedia.visit()

# Input the search text
wikipedia.search_input.write('Automancy')

# Click the search button
wikipedia.search_button.click()

# Check to see if the "not found" text still exists
if wikipedia.not_found_text.exists:
    print('Forever alone...')
```

### Considerations
The great thing about these two methods is that you can perform the same kinds of actions with the same commands independent of how you build your models.

Sometimes it might be advantageous to build a page model on the fly if you're in a situation where you've got extremely dynamic pages.  If this is the case, you could technically create many "components" (a-la React, Polymer, etc), and mirror your automation scripts to the UI design, adding objects to page models only as needed.

It might also be advantageous to construct more statically defined Page models as a class to mirror components or features in a web app, able to stand on its own, able to be extended easily, able to be included in a library of models representing an entire web UI, and able to have custom functions defined within it to string together multiple Elemental actions in a single call.

## How to Think About Automancy
Ecosystems & Elementals.  These are the two key terms employed within Automancy which sum up the design philosophy.  Once you understand the meaning of these two terms, you'll understand Automancy.

Here is a brief overview for simplicity's sake.  Further discussion can be found in the `docs/` directory.

### Ecosystems
Think of the term "ecosystem" in the natural sciences.  What is an ecosystem?  It's a domain of life generally speaking, a domain of complex entities interacting with each other, usually with some sort of hierarchical relationship between everything within the domain.

This analogy is used here in Automancy.  A single web page can be thought of as an ecosystem.

Simple ecosystems might only contain some text, a picture, and a button to interact with, while complex ecosystem might have animations, triggered DOM changes, modals, toast messages, video playback, etc.

The practice of Automancy is the practice of defining what exists in an ecosystem as a "model" of reality (or at least as close to it as you need).

### Elementals
If a web page is a complex ecosystem as in nature, you can think of what lives on a web page, the unique constituents of a DOM, as complex organisms, molecular structures, and atomic elements, embedded within each other as complexity decreases.

"**Elemental**", in Automancy, is the general term used for everything from a simple `Button` to a complex `HTML5VideoPlayer` object.

That said, "Elementals" are intended to be considered hierarchical in nature.  A `Form` molecule will naturally contain any number of "`TextInput`" and `Button` atoms, for example.

[comment]: <> (For this reason, Automancy considers this hierarchical structure for its module and directory path conventions.)

There are three `Elemental` types

- Atoms
- Molecules
- Organisms

**Atoms**: The least complex `Elemental`.  Each represents a single web element DOM object; a `<button`, or an `<a>`, but also checkbox, radio selector, or a text input DOM objects.

**Molecules**: Meant to be used when constructing models of DOM structures such as `<form>`, a modal, a dialogbox; they tend to be made up of Atom objects which they contain.

**Organisms**: The most complex `Elemental`, usually constructed out of many custom class objects and unique controls and internal options.  Organisms contain the means of constructing xpath selectors for their children DOM elements automatically.

## Wrapping it Up
Now you've seen a simple example of how Selenium can be simplified for the greater good.

There is much more to be said, however I feel it wise to keep this initial README.md simple enough to consume and leave you, the reader, desiring more juicy details.

Juicy details ye shall receive.

Inside the `docs/` directory is where ongoing documentation will appear.

This further documentation will take the following forms.

- Tutorials: First steps for a learner, meant to introduce concepts, build confidence, inspire, not distract, etc.
- How-Tos: Answers to specific questions about how to accomplish something in or with Automancy.
- References: Technical specification details for each class, similar to API reference documentation (but not garbage, I hope...)
- Discussions: High level conveyance of ideas, philosophies, and explanations for design choices.

I hope you'll enjoy utilizing Automancy as much as I've enjoyed creating it so far.  Please feel free to submit issues here on GitHub when you find them, it's always appreciated.

If you'd like to contribute to Automancy in any way, I'm pretty easy to reach.  The more people working on Automancy the better for all.

Thank you!


%package help
Summary:	Development documents and examples for Automancy
Provides:	python3-Automancy-doc
%description help
# Automancy
A Web UI Automation framework for Python, designed to simplify the functionality and features of Selenium.

## Motivation
Raise your hand if you've ever thought to yourself "Man... I really don't like how Selenium code is written, it's so ugly and strangely difficult to work with..."

No, nevermind, don't raise your hand, you'll just look weird, and I won't be able to see you anyway.

We all know it, Selenium is cumbersome to write, abstract in the not-so-fun way, difficult to read (thus to maintain), and rather fragile most of the time.

Automancy is meant to resolve these annoyances, regardless of if your intent is to scrape web pages, automate actions on a web portal, or create automated UI tests for a web app.

The intent of Automancy is to add a greater degree of sophisticated control to web based automation while reducing the syntactic complexity of these operations and providing a design pattern meant to facilitate anti-fragility.

If you treat input as error, automating away as much menial work for the operator as possible without taking away meaningful control, fundamentally, you are automating automation.

Hence, Automancy, the animation of automation.

![Stay awhile and listen](docs/images/stay-awhile-and-listen.jpg)

## Pre-requisites
You'll need to have your favorite browser webdriver located in a directory that is a part of the Python path variables.

That's it, pretty simple.

_(If you don't know where to find a WebDriver, or if you don't know what I'm talking about, you might need to study up on some lesser arcane magic first)_

## Installation

    pip install automancy

_(What?  You thought there would be more?)_

## First Example
There are many ways Automancy can be used, various styles of implementation supported, it all depends on the needs of your context.

This first example is intended to show a bit of executable code and to illustrate Automancy's flexibility in implementation.

We are going to automate a few actions on Wikipedia.  We want to see if anyone has written a page for Automancy yet.

**Special Note 1**: You might notice the `driver` object is not passed to any further object in the scope.  This is not an error.  Automancy includes the ability to detect and reference WebDriver instances automatically.  This will be discussed in greater detail elsewhere.

**Special Note 2**: The current version of Automancy requires the manual instantiation of a Selenium WebDriver object.  This will change before v1.0.0 is released.

Here we go, This example will be broken up into three parts and illustrate two simple ways of doing the same thing.
1. Go to the Wikipedia main page searching for 
2. Type "Automancy" into the search bar
3. Click on the search button / press enter
4. Check for the existence of an element on the results page.

### Part 1 -> Setup
```python
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from automancy import Button, Label, Page, TextInput

# Instantiate a Chrome WebDriver
driver = webdriver.Chrome(options=webdriver.ChromeOptions(), desired_capabilities=DesiredCapabilities.CHROME)
```

### Part 2-a -> Generating a Page model programmatically using the `.add(...)` method
This is the first of the two alternative methods described here for constructing a web UI model with Automancy.
```python
# Instantiate a Page object with the wikipedia main url
wikipedia = Page(url='https://en.wikipedia.org/wiki/Main_Page')

# Add the necessary Elementals to the wikipedia page.
wikipedia.add(Button('//input[@id="searchButton"]', 'Search Button', 'search_button'))
wikipedia.add(TextInput('//input[@id="searchInput"]', 'Search Input', 'search_input'))
wikipedia.add(Label('//p[@class="mw-search-nonefound"]', 'Not Found Text', 'not_found_text'))
```

### Part 2-b -> Defining a UI Model as a persistent class
This is the second alternate method of constructing a web UI model; either will work.
```python
class Wikipedia(Page):
    def __init__(self, url='https://en.wikipedia.org/wiki/Main_Page'):
        self.search_button = Button('//input[@id="searchButton"]', 'Search Button', 'search_button')
        self.search_input = TextInput('//input[@id="searchInput"]', 'Search Input', 'search_input')
        self.not_found_text = Label('//p[@class="mw-search-nonefound"]', 'Not Found Text', 'not_found_text')

wikipedia = Wikipedia()
```

### Part 3 -> Perform the actions
```python
# Go to the wikipedia main page
wikipedia.visit()

# Input the search text
wikipedia.search_input.write('Automancy')

# Click the search button
wikipedia.search_button.click()

# Check to see if the "not found" text still exists
if wikipedia.not_found_text.exists:
    print('Forever alone...')
```

### Considerations
The great thing about these two methods is that you can perform the same kinds of actions with the same commands independent of how you build your models.

Sometimes it might be advantageous to build a page model on the fly if you're in a situation where you've got extremely dynamic pages.  If this is the case, you could technically create many "components" (a-la React, Polymer, etc), and mirror your automation scripts to the UI design, adding objects to page models only as needed.

It might also be advantageous to construct more statically defined Page models as a class to mirror components or features in a web app, able to stand on its own, able to be extended easily, able to be included in a library of models representing an entire web UI, and able to have custom functions defined within it to string together multiple Elemental actions in a single call.

## How to Think About Automancy
Ecosystems & Elementals.  These are the two key terms employed within Automancy which sum up the design philosophy.  Once you understand the meaning of these two terms, you'll understand Automancy.

Here is a brief overview for simplicity's sake.  Further discussion can be found in the `docs/` directory.

### Ecosystems
Think of the term "ecosystem" in the natural sciences.  What is an ecosystem?  It's a domain of life generally speaking, a domain of complex entities interacting with each other, usually with some sort of hierarchical relationship between everything within the domain.

This analogy is used here in Automancy.  A single web page can be thought of as an ecosystem.

Simple ecosystems might only contain some text, a picture, and a button to interact with, while complex ecosystem might have animations, triggered DOM changes, modals, toast messages, video playback, etc.

The practice of Automancy is the practice of defining what exists in an ecosystem as a "model" of reality (or at least as close to it as you need).

### Elementals
If a web page is a complex ecosystem as in nature, you can think of what lives on a web page, the unique constituents of a DOM, as complex organisms, molecular structures, and atomic elements, embedded within each other as complexity decreases.

"**Elemental**", in Automancy, is the general term used for everything from a simple `Button` to a complex `HTML5VideoPlayer` object.

That said, "Elementals" are intended to be considered hierarchical in nature.  A `Form` molecule will naturally contain any number of "`TextInput`" and `Button` atoms, for example.

[comment]: <> (For this reason, Automancy considers this hierarchical structure for its module and directory path conventions.)

There are three `Elemental` types

- Atoms
- Molecules
- Organisms

**Atoms**: The least complex `Elemental`.  Each represents a single web element DOM object; a `<button`, or an `<a>`, but also checkbox, radio selector, or a text input DOM objects.

**Molecules**: Meant to be used when constructing models of DOM structures such as `<form>`, a modal, a dialogbox; they tend to be made up of Atom objects which they contain.

**Organisms**: The most complex `Elemental`, usually constructed out of many custom class objects and unique controls and internal options.  Organisms contain the means of constructing xpath selectors for their children DOM elements automatically.

## Wrapping it Up
Now you've seen a simple example of how Selenium can be simplified for the greater good.

There is much more to be said, however I feel it wise to keep this initial README.md simple enough to consume and leave you, the reader, desiring more juicy details.

Juicy details ye shall receive.

Inside the `docs/` directory is where ongoing documentation will appear.

This further documentation will take the following forms.

- Tutorials: First steps for a learner, meant to introduce concepts, build confidence, inspire, not distract, etc.
- How-Tos: Answers to specific questions about how to accomplish something in or with Automancy.
- References: Technical specification details for each class, similar to API reference documentation (but not garbage, I hope...)
- Discussions: High level conveyance of ideas, philosophies, and explanations for design choices.

I hope you'll enjoy utilizing Automancy as much as I've enjoyed creating it so far.  Please feel free to submit issues here on GitHub when you find them, it's always appreciated.

If you'd like to contribute to Automancy in any way, I'm pretty easy to reach.  The more people working on Automancy the better for all.

Thank you!


%prep
%autosetup -n Automancy-0.5.12

%build
%py3_build

%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
	find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
	find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
	find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
	find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
	find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .

%files -n python3-Automancy -f filelist.lst
%dir %{python3_sitelib}/*

%files help -f doclist.lst
%{_docdir}/*

%changelog
* Fri Jun 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.12-1
- Package Spec generated