aerokube / ggr

A lightweight load balancer used to create big Selenium clusters
https://aerokube.com/ggr/latest/
Apache License 2.0
314 stars 74 forks source link

INVALID_URL every run test via ggr #360

Closed kuproydev closed 2 years ago

kuproydev commented 2 years ago

Hi, i have followed readme and ggr docs but when running the test the results are the same as the picture below. Is there anything I missed?

CleanShot 2022-04-11 at 16 51 46@2x
vania-pooh commented 2 years ago

@kuproydev should be /wd/hub/session/<id>/url and so on. Session ID is missing.

kuproydev commented 2 years ago

Yeah, this doesn't work when using selenium grid. when i use selenoid it works fine. Thank you

vania-pooh commented 2 years ago

@kuproydev this is how WebDriver protocol works. So should be the same in Selenoid \ Selenium Grid.

kuproydev commented 2 years ago

@vania-pooh yes you are right, but when I use selenium grid, session is successfully forwarded, but browser is not launched. is there anything i missed?

CleanShot 2022-04-13 at 19 40 34@2x CleanShot 2022-04-13 at 19 35 10@2x

this is my configurations selenium command

java -jar selenium-server-4.1.0.jar standalone --port 4445

ggr command

 ./ggr -verbose

quota

<qa:browsers xmlns:qa="urn:config.gridrouter.qatools.ru">
<browser name="safari" defaultVersion="15.4">
    <version number="15.4">
        <region name="1">
            <host name="localhost" port="4445" count="1"/>
        </region>
    </version>
</browser>
<browser name="chrome" defaultVersion="100.0">
    <version number="100.0">
        <region name="1">
            <host name="localhost" port="4445" count="1"/>
        </region>
    </version>
</browser>
</qa:browsers>

curl

curl -H "Content-Type:application/json;charset=utf-8" --data '{"capabilities": {"alwaysMatch": {"browserName": "chrome"}}}' http://admin:admin@localhost:4444/wd/hub/session
vania-pooh commented 2 years ago

@kuproydev they could have changed base URL to just /, so instead of http://some-host.example.com:4444/wd/hub in Selenium Grid 4 base URL could be http://some-host.example.com:4444/.

kuproydev commented 2 years ago

@vania-pooh Is it like this? they return 404

CleanShot 2022-04-13 at 22 21 25@2x
vania-pooh commented 2 years ago

@kuproydev yes, request is correct. In that case have no idea about the reason.