Giter Site home page Giter Site logo

payback-activate's People

Contributors

dependabot[bot] avatar stefanjenkner avatar vincent5672 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

payback-activate's Issues

Synology Docker Bug

Hey. Following your instructions i get the following error... Any idea?

2023-11-30T07:58:35.888Z INFO chromedriver: Initiate Chromedriver Launcher (v8.1.1)
2023-11-30T07:58:35.890Z INFO @wdio/cli:launcher: Run onPrepare hook
2023-11-30T07:58:35.893Z INFO chromedriver: Start Chromedriver (/app/node_modules/chromedriver/lib/chromedriver/chromedriver) with args --port=9515 --url-base=/
2023-11-30T07:58:36.148Z INFO chromedriver: Starting ChromeDriver 119.0.6045.159 (eaa767197fa7dd412133d1b84f7eb60da43409c9-refs/branch-heads/6045@{#1327}) on port 9515
2023-11-30T07:58:36.149Z INFO chromedriver: Only local connections are allowed.
2023-11-30T07:58:36.149Z INFO chromedriver: Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
2023-11-30T07:58:36.151Z WARN chromedriver: [1701331116.151][SEVERE]: bind() failed: Address not available (99)
2023-11-30T07:58:36.151Z INFO chromedriver: ChromeDriver was started successfully.
2023-11-30T07:58:36.243Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2023-11-30T07:58:36.245Z INFO @wdio/local-runner: Start worker 0-0 with arg: run,./wdio.conf.js
[0-0] 2023-11-30T07:58:38.459Z INFO @wdio/local-runner: Run worker command: run
[0-0] RUNNING in chrome - file:///test/specs/payback.js
[0-0] 2023-11-30T07:58:38.710Z INFO webdriver: Initiate new session using the WebDriver protocol
[0-0] 2023-11-30T07:58:38.879Z INFO webdriver: [POST] http://localhost:9515/session
[0-0] 2023-11-30T07:58:38.880Z INFO webdriver: DATA {
[0-0]   capabilities: {
[0-0]     alwaysMatch: {
[0-0]       browserName: 'chrome',
[0-0]       acceptInsecureCerts: true,
[0-0]       'goog:chromeOptions': [Object]
[0-0]     },
[0-0]     firstMatch: [ {} ]
[0-0]   },
[0-0]   desiredCapabilities: {
[0-0]     browserName: 'chrome',
[0-0]     acceptInsecureCerts: true,
[0-0]     'goog:chromeOptions': { args: [Array] }
[0-0]   }
[0-0] }
[0-0] Error in "Payback Activate should verify if credentials are set in environment variables"
    at <Jasmine>
    at UserContext.<anonymous> (file:///app/test/specs/payback.js:9:46)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

New login form breaks automation

Context

A new login form has been introduced

Issue

The former input fields for username and password no longer exist and the new login form breaks the automation.

Make the script run on Android/iOS

Since most of the Payback activity is happenings on mobile devices, it would be really useful to have a solution that would run on mobile devices too.
I know iOS would not be as easy, but I mentioned it not to discriminate.
Thank you!

Guide correction / Feature request

Hello there,

I stumbled upon this and really like the idea. My idea was hosting this in docker on my NAS which uses ARMV7, so far I got a couple of issues with the docker build.
To check if the code in general is working I ran this on my dev machine and it error'ed out. It took a small dive in your code and found that the account in question needs to have the "ecoupon" option enabled (which I had not). After enabling this, the script ran and activated all coupons.

Would be great if you could adjust your readme to this. I will play around a bit with this and see if I can make this work on my NAS as well.

_

_

Chrome is flickering and is failing to start - logs included [MacOS]

wdio
wdio run ./wdio.conf.js

Execution of 1 workers started at 2023-05-14T20:30:01.165Z

2023-05-14T20:30:01.236Z INFO chromedriver: Initiate Chromedriver Launcher (v8.1.1)
2023-05-14T20:30:01.238Z INFO @wdio/cli:launcher: Run onPrepare hook
2023-05-14T20:30:01.241Z INFO chromedriver: Start Chromedriver (/Users/bogdan/Desktop/payback-activate-main/node_modules/chromedriver/lib/chromedriver/chromedriver) with args --port=9515 --url-base=/
2023-05-14T20:30:01.265Z INFO chromedriver: Starting ChromeDriver 111.0.5563.64 (c710e93d5b63b7095afe8c2c17df34408078439d-refs/branch-heads/5563@{#995}) on port 9515
2023-05-14T20:30:01.265Z INFO chromedriver: Only local connections are allowed.
2023-05-14T20:30:01.265Z INFO chromedriver: Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
2023-05-14T20:30:01.270Z INFO chromedriver: ChromeDriver was started successfully.
2023-05-14T20:30:01.359Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2023-05-14T20:30:01.360Z INFO @wdio/local-runner: Start worker 0-0 with arg: run,./wdio.conf.js
[0-0] 2023-05-14T20:30:02.296Z INFO @wdio/local-runner: Run worker command: run
[0-0] RUNNING in chrome - file:///test/specs/payback.js
[0-0] 2023-05-14T20:30:02.421Z INFO webdriver: Initiate new session using the WebDriver protocol
[0-0] 2023-05-14T20:30:02.547Z INFO webdriver: [POST] http://localhost:9515/session
[0-0] 2023-05-14T20:30:02.548Z INFO webdriver: DATA {
[0-0] capabilities: {
[0-0] alwaysMatch: { browserName: 'chrome', acceptInsecureCerts: true },
[0-0] firstMatch: [ {} ]
[0-0] },
[0-0] desiredCapabilities: { browserName: 'chrome', acceptInsecureCerts: true }
[0-0] }
[0-0] 2023-05-14T20:30:04.088Z WARN webdriver: Request failed with status 500 due to session not created: This version of ChromeDriver only supports Chrome version 111
[0-0] Current browser version is 113.0.5672.92 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[0-0] 2023-05-14T20:30:04.088Z INFO webdriver: Retrying 1/3
[0-0] 2023-05-14T20:30:04.089Z INFO webdriver: [POST] http://localhost:9515/session
[0-0] 2023-05-14T20:30:04.089Z INFO webdriver: DATA {
[0-0] capabilities: {
[0-0] alwaysMatch: { browserName: 'chrome', acceptInsecureCerts: true },
[0-0] firstMatch: [ {} ]
[0-0] },
[0-0] desiredCapabilities: { browserName: 'chrome', acceptInsecureCerts: true }
[0-0] }
[0-0] 2023-05-14T20:30:05.196Z WARN webdriver: Request failed with status 500 due to session not created: This version of ChromeDriver only supports Chrome version 111
[0-0] Current browser version is 113.0.5672.92 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[0-0] 2023-05-14T20:30:05.196Z INFO webdriver: Retrying 2/3
[0-0] 2023-05-14T20:30:05.196Z INFO webdriver: [POST] http://localhost:9515/session
[0-0] 2023-05-14T20:30:05.196Z INFO webdriver: DATA {
[0-0] capabilities: {
[0-0] alwaysMatch: { browserName: 'chrome', acceptInsecureCerts: true },
[0-0] firstMatch: [ {} ]
[0-0] },
[0-0] desiredCapabilities: { browserName: 'chrome', acceptInsecureCerts: true }
[0-0] }
[0-0] 2023-05-14T20:30:06.302Z WARN webdriver: Request failed with status 500 due to session not created: This version of ChromeDriver only supports Chrome version 111
[0-0] Current browser version is 113.0.5672.92 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[0-0] 2023-05-14T20:30:06.302Z INFO webdriver: Retrying 3/3
[0-0] 2023-05-14T20:30:06.302Z INFO webdriver: [POST] http://localhost:9515/session
[0-0] 2023-05-14T20:30:06.302Z INFO webdriver: DATA {
[0-0] capabilities: {
[0-0] alwaysMatch: { browserName: 'chrome', acceptInsecureCerts: true },
[0-0] firstMatch: [ {} ]
[0-0] },
[0-0] desiredCapabilities: { browserName: 'chrome', acceptInsecureCerts: true }
[0-0] }
[0-0] 2023-05-14T20:30:07.458Z ERROR webdriver: Request failed with status 500 due to session not created: session not created: This version of ChromeDriver only supports Chrome version 111
[0-0] Current browser version is 113.0.5672.92 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[0-0] 2023-05-14T20:30:07.458Z ERROR webdriver: session not created: session not created: This version of ChromeDriver only supports Chrome version 111
[0-0] Current browser version is 113.0.5672.92 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[0-0] at getErrorFromResponseBody (file:///Users/bogdan/Desktop/payback-activate-main/node_modules/webdriver/build/utils.js:194:12)
[0-0] at NodeJSRequest._request (file:///Users/bogdan/Desktop/payback-activate-main/node_modules/webdriver/build/request/index.js:164:23)
[0-0] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[0-0] at async startWebDriverSession (file:///Users/bogdan/Desktop/payback-activate-main/node_modules/webdriver/build/utils.js:63:20)
[0-0] at async WebDriver.newSession (file:///Users/bogdan/Desktop/payback-activate-main/node_modules/webdriver/build/index.js:24:45)
[0-0] at async remote (file:///Users/bogdan/Desktop/payback-activate-main/node_modules/webdriverio/build/index.js:48:22)
[0-0] at async Runner._startSession (file:///Users/bogdan/Desktop/payback-activate-main/node_modules/@wdio/runner/build/index.js:221:29)
[0-0] at async Runner._initSession (file:///Users/bogdan/Desktop/payback-activate-main/node_modules/@wdio/runner/build/index.js:187:25)
[0-0] at async Runner.run (file:///Users/bogdan/Desktop/payback-activate-main/node_modules/@wdio/runner/build/index.js:77:19)
[0-0] 2023-05-14T20:30:07.458Z ERROR @wdio/runner: Error: Failed to create session.
[0-0] session not created: This version of ChromeDriver only supports Chrome version 111
[0-0] Current browser version is 113.0.5672.92 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[0-0] at startWebDriverSession (file:///Users/bogdan/Desktop/payback-activate-main/node_modules/webdriver/build/utils.js:68:15)
[0-0] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[0-0] at async WebDriver.newSession (file:///Users/bogdan/Desktop/payback-activate-main/node_modules/webdriver/build/index.js:24:45)
[0-0] at async remote (file:///Users/bogdan/Desktop/payback-activate-main/node_modules/webdriverio/build/index.js:48:22)
[0-0] at async Runner._startSession (file:///Users/bogdan/Desktop/payback-activate-main/node_modules/@wdio/runner/build/index.js:221:29)
[0-0] at async Runner._initSession (file:///Users/bogdan/Desktop/payback-activate-main/node_modules/@wdio/runner/build/index.js:187:25)
[0-0] at async Runner.run (file:///Users/bogdan/Desktop/payback-activate-main/node_modules/@wdio/runner/build/index.js:77:19)
[0-0] FAILED in chrome - file:///test/specs/payback.js
2023-05-14T20:30:07.576Z INFO @wdio/cli:launcher: Run onWorkerEnd hook
2023-05-14T20:30:07.576Z INFO @wdio/cli:launcher: Run onComplete hook

Spec Files: 0 passed, 1 failed, 1 total (100% completed) in 00:00:06

2023-05-14T20:30:07.578Z INFO @wdio/local-runner: Shutting down spawned worker
2023-05-14T20:30:07.832Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully
2023-05-14T20:30:07.832Z INFO @wdio/local-runner: shutting down

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.