-
Task
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
-
3
-
False
-
-
False
-
-
The first version of OVE cluster installation automation https://github.com/openshift-metal3/dev-scripts/pull/1796 uses go-rod library and there by needs golang dependencies to be vendored in. It will be a good improvement to refactor and reduce golang dependencies by using a declarative way to issuing commands such as https://github.com/openshift-metal3/dev-scripts/blob/master/agent/e2e/agent-tui/utils.sh#L15 i.e. a much more human readable command. Build a golang based go-rod binary and then pass the command to this library to invoke the commands.
The idea is to:
1. Build a small Golang-based binary wrapping go-rod.
2. Expose a simple, human-readable DSL (domain-specific language) that describes browser actions.
3. The binary parses the DSL commands and executes them via go-rod.
Example:
step "Select virtualization bundle" "#bundle-virtualization" "02-operators.png"
This would:
1. Describe the step ("Select virtualization bundle")
2. Interact with the DOM element ("#bundle-virtualization")
3. Capture a screenshot ("02-operators.png")