Crissal1995 / automsr

MIT License
7 stars 0 forks source link

Execute promotion item not found in the dashboard #45

Closed Crissal1995 closed 1 year ago

Crissal1995 commented 1 year ago

From time to time, a banner may popup in the home page of Rewards containing another promotion.

This is not found in the dashboard, so at the moment is skipped.

Usually it's a urlreward promotion, meaning that just clicking the element is sufficient to complete it.

An option to execute it could be inserting a new step between promotions and searches where the homepage is checked for the presence of this element, using Selenium APIs.

Crissal1995 commented 1 year ago

Example of item not found in the dashboard variable, but found in the actual GUI dashboard.

<mee-hero-item id="promo-item" horz="left" vert="center" context="accessory" theme="light" ng-if="$ctrl.promotion" ng-show="$ctrl.show" data-m="{&quot;cN&quot;:&quot;Taart + kaas&quot;,&quot;id&quot;:&quot;nlstar_rewards_adhoc_globalherobanner_recipe_20230904_20&quot;,&quot;sN&quot;:1,&quot;aN&quot;:&quot;Rewards.Dashboard.Promotion&quot;,&quot;cT&quot;:&quot;Promotion&quot;}" aria-label="Taart + kaas, Geprobeerd cheesecake te maken? Probeer maar eens. Dit is heel eenvoudig." class="ng-scope"><section ng-class="$heroItemCtrl.typeClass" class="m-hero-item f-x-left f-y-center context-accessory theme-light">...</mee-hero-item>