Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spitta - completing challenge 3 #12

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion background-colors.suite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#### Automation Requirement(s)
- validate background color and proper vertical order of the following labels within the voting chart:
- `#EFDFE7` Voting Certificates
- `#E6CBD7` Wards
- `#E7CBD6` Wards
- `#FFFFFF` Self
- `#D6D7D6` Total Votable Shares

Expand Down
20 changes: 20 additions & 0 deletions multiple-matches.suite/Images/spitta.imageinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
CaptureDate = "2021-07-19 20:14:19 +0000";
CaptureHost = "screenshot.png \U2013 /Users/jospitta/Downloads/sensetalk-solutions/multiple-matches.suite/Resources";
CaptureScreenSize = (
2206,
1756
);
HasAlpha = 1;
HotSpotX = 15;
HotSpotY = 7;
LastKnownLocationX = 0;
LastKnownLocationY = 0;
OriginalLocationX = 862;
OriginalLocationY = 550;
Precise = 0;
Pulsing = 0;
Scale = 1;
tags = (
);
}
Binary file added multiple-matches.suite/Images/spitta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions multiple-matches.suite/Scripts/spitta.script
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should really have a connection process here for the screenshot. These suites and then solutions should be self-contained.


Put EveryImageLocation("spitta") into FoundImages

// Use the next to line to find the one you want. Then you can comment it out if you like.
// log EveryImageLocation("spitta")

Click item 4 of FoundImages
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than clicking a specific item in the array, there should be some way to identify exactly which label you're targeting and clicking the corresponding ellipsis button. If you check the automation requirements for this challenge, you need to make it extensible for all labels, but specifically verify it's finding the appropriate one for the EXTR field.


26 changes: 26 additions & 0 deletions multiple-matches.suite/SearchObjects/spitta.searchobject
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"originalcapturelocation" : [
860,
548,
36,
18
],
"createddate" : 1626725422.8686609,
"lastmodifieddate" : 1626725422.8686619,
"name" : "spitta",
"testlocationdata" : [
{
"capturerect" : [
860,
548,
36,
18
],
"connectiontype" : "Screenshot",
"connectionserverid" : "\/Users\/jospitta\/Downloads\/sensetalk-solutions\/multiple-matches.suite\/Resources\/screenshot.png",
"name" : "spitta.png",
"type" : 1,
"connectionname" : "screenshot.png"
}
]
}
13 changes: 10 additions & 3 deletions spreadsheet-search.suite/Scripts/matt.script
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
passwordForUser "JHalpert"

// Returns the embedded Resource folder inside the suite
function resourceFolder

--------------------------------------------------


// Returns the filepath for the suite's Resources/ directory.
function resourcesFolder
return suiteInfo().path & "/Resources/"
end resourceFolder
end resourcesFolder


// Returns the password for the target username.
// If the username is not found, will log an error with appropriate message.
on passwordForUser targetUsername
put resourceFolder() & "passwords.xlsx" into filepath
put {type: "excel", file: filepath} into credentials
Expand Down