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

AnswerOnNextPromt seems doesn't work? #327

Open
zhiburt opened this issue Jun 24, 2021 · 2 comments
Open

AnswerOnNextPromt seems doesn't work? #327

zhiburt opened this issue Jun 24, 2021 · 2 comments
Assignees

Comments

@zhiburt
Copy link

zhiburt commented Jun 24, 2021

    "commands": [{
      "id": "442be203-c4ac-4c3c-97aa-c640cd2789ba",
      "comment": "",
      "command": "answerOnNextPrompt",
      "target": "Hello World",
      "targets": [],
      "value": "Hello World"
    }, {
      "id": "44b6ccce-aa23-4506-977a-a86de9bb36ad",
      "comment": "",
      "command": "executeScript",
      "target": "return prompt(\"Enter a value\")",
      "targets": [],
      "value": "aaa"
    }, {
      "id": "4eba7ac7-0e6d-4b19-bf2a-989f039e74a9",
      "comment": "",
      "command": "echo",
      "target": "${aaa}",
      "targets": [],
      "value": ""
    }, {
      "id": "4eba7ac7-0e6d-4b19-bf2a-989f039e74a9",
      "comment": "",
      "command": "assert",
      "target": "aaa",
      "targets": [],
      "value": "Hello World"
    }]
[2021-06-24 21:43:08.191 +03:00] [INFO] Existing driver found: FirefoxDriver
[2021-06-24 21:43:08.212 +03:00] [INFO] Current speed: 0 ms/command
[2021-06-24 21:43:08.212 +03:00] [INFO] Start: TestCase[asd] (AnswerOnNextPrompt.side)
[2021-06-24 21:43:08.212 +03:00] [INFO] baseURL: https://www.google.com
[2021-06-24 21:43:08.219 +03:00] [INFO] <1> Command#1: answerOnNextPrompt("Hello World")
[2021-06-24 21:43:08.269 +03:00] [INFO] - [Success] URL: [about:blank] / Title: []
[2021-06-24 21:43:08.270 +03:00] [INFO] <2> Command#2: executeScript("return prompt(\"Enter a value\")", "aaa")
[2021-06-24 21:43:08.326 +03:00] [INFO] - [] No page information: [Dismissed user prompt dialog: Enter a value: ]
[2021-06-24 21:43:08.326 +03:00] [INFO] <3> Command#3: echo("${aaa}")
[2021-06-24 21:43:08.341 +03:00] [INFO] - [] URL: [about:blank] / Title: []
[2021-06-24 21:43:08.341 +03:00] [INFO] <4> Command#4: assert("aaa", "Hello World")
[2021-06-24 21:43:08.363 +03:00] [ERROR] Command#4: assert("aaa", "Hello World") => [Failure: Assertion failed (Result: [null] / Expected: [Hello World])]
[2021-06-24 21:43:08.368 +03:00] [INFO] End(0.152sec): TestCase[asd] (AnswerOnNextPrompt.side)
[2021-06-24 21:43:08.368 +03:00] [INFO] End(0.000sec): TestSuite[Default Suite] (AnswerOnNextPrompt.side)
[2021-06-24 21:43:08.369 +03:00] [INFO] End(0.000sec): TestProject[AnswerOnNextPrompt] (AnswerOnNextPrompt.side)
1624560188373	Marionette	INFO	Stopped listening on port 41295
JavaScript error: https://start.fedoraproject.org/, line 296: TypeError: $(...).uls is not a function
[2021-06-24 21:43:09.034 +03:00] [INFO] Quit: FirefoxDriver
[2021-06-24 21:43:09.034 +03:00] [INFO] Exit code: 3 (FAILURE)
@vmi vmi self-assigned this Jun 25, 2021
vmi added a commit that referenced this issue Jul 4, 2021
* `answer on next prompt`
* `choose cancel on next prompt`
* `choose ok on next confirmation`
* `choose cancel on next confirmation`
@vmi
Copy link
Owner

vmi commented Jul 4, 2021

I fixed this problem and released version 3.34.0.
Please test it.

zhiburt added a commit to Plato-solutions/siderunner that referenced this issue Jul 5, 2021
Thanks to vmi/selenese-runner-java#327

Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
@zhiburt
Copy link
Author

zhiburt commented Jul 5, 2021

Confirmed 👍

But can I ask you how you did get to this solution ?:)
I mean I put a couple of hours to this issue as well but haven't succeeded 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants