Skip to content

Commit

Permalink
Add mylife data broker (#2786)
Browse files Browse the repository at this point in the history
Task/Issue URL:
https://app.asana.com/0/1206873150423133/1207316296802490/f
Tech Design URL:
CC:

**Description**:

**Steps to test this PR**:
1.

<!--
Tagging instructions
If this PR isn't ready to be merged for whatever reason it should be
marked with the `DO NOT MERGE` label (particularly if it's a draft)
If it's pending Product Review/PFR, please add the `Pending Product
Review` label.

If at any point it isn't actively being worked on/ready for
review/otherwise moving forward (besides the above PR/PFR exception)
strongly consider closing it (or not opening it in the first place). If
you decide not to close it, make sure it's labelled to make it clear the
PRs state and comment with more information.
-->

---
###### Internal references:
[Pull Request Review
Checklist](https://app.asana.com/0/1202500774821704/1203764234894239/f)
[Software Engineering
Expectations](https://app.asana.com/0/59792373528535/199064865822552)
[Technical Design
Template](https://app.asana.com/0/59792373528535/184709971311943)
[Pull Request
Documentation](https://app.asana.com/0/1202500774821704/1204012835277482/f)
  • Loading branch information
brianhall authored May 23, 2024
1 parent 00c70b4 commit 03bc5dc
Showing 1 changed file with 140 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
{
"name": "mylife",
"url": "mylife.com",
"version": "0.0.1",
"addedDatetime": 1715797497496,
"steps": [
{
"stepType": "scan",
"scanType": "templatedUrl",
"actions": [
{
"actionType": "navigate",
"id": "31285970-27bd-4ec6-a4c1-afc5fb501624",
"url": "https://www.mylife.com/pub-multisearch.pubview?searchFirstName=${firstName}&searchLastName=${lastName}&searchLocation=${city}%2C+${state|upcase}&whyReg=peoplesearch&whySub=Member+Profile+Sub&pageType=ps"
},
{
"actionType": "extract",
"id": "9a08be56-d596-48e5-8745-0574b541e9df",
"selector": ".ais-InfiniteHits-item",
"profile": {
"name": {
"selector": ".hit-name",
"beforeText": ","
},
"alternativeNamesList": {
"selector": ".hit-akas .hit-values",
"findElements": true
},
"age": {
"selector": ".hit-name",
"afterText": ","
},
"addressCityState": {
"selector": ".hit-location"
},
"addressCityStateList": {
"selector": ".hit-pastAddresses .hit-values",
"findElements": true
},
"profileUrl": {
"selector": ".hit-btn-lg",
"identifierType": "path",
"identifier": "https://www.mylife.com/${firstName}-${lastName}/${id}"
}
}
}
]
},
{
"stepType": "optOut",
"optOutType": "formOptOut",
"actions": [
{
"actionType": "navigate",
"id": "8c7e8f10-5bd2-4dba-b99a-d198b3c0bbc9",
"url": "https://www.mylife.com/ccpa/index.pubview"
},
{
"actionType": "fillForm",
"id": "1cd0b2b7-7203-4ae1-9d22-d76aa6de8a26",
"selector": "//form",
"dataSource": "userProfile",
"elements": [
{
"type": "firstName",
"selector": ".//input[@name='firstname']"
},
{
"type": "lastName",
"selector": ".//input[@name='lastname']"
},
{
"type": "city",
"selector": ".//input[@name='city']"
},
{
"type": "state",
"selector": ".//input[@name='state']"
}
]
},
{
"actionType": "fillForm",
"id": "ed570894-ebbe-4f9c-a9f7-9d58e81bdc28",
"selector": "//form",
"elements": [
{
"type": "email",
"selector": ".//input[@name='emailAddress']"
},
{
"type": "$generated_zip_code$",
"selector": ".//input[@name='zipcode']"
},
{
"type": "profileUrl",
"selector": ".//input[@name='profileUrl']"
}
]
},
{
"actionType": "getCaptchaInfo",
"id": "aeda8b17-92cf-43ce-8974-12a13fb9bcfd",
"selector": ".g-recaptcha"
},
{
"actionType": "solveCaptcha",
"id": "6b8a962e-19ed-4f33-8c56-4f4a1f17cad3",
"selector": ".g-recaptcha"
},
{
"actionType": "click",
"id": "6cb0e6f4-e881-4937-872e-29627223bdb8",
"elements": [
{
"type": "button",
"selector": ".//input[@type='submit']"
}
]
},
{
"actionType": "expectation",
"id": "fe7201a7-4e92-4ad3-90fb-d836019d71e0",
"expectations": [
{
"type": "text",
"selector": "#successRequest",
"expect": "Your request has been received."
}
]
}
]
}
],
"schedulingConfig": {
"retryError": 48,
"confirmOptOutScan": 72,
"maintenanceScan": 240
}
}

0 comments on commit 03bc5dc

Please sign in to comment.