Skip to content

InvalidCookieDomainException even in current domain (path:"/") #2811

@JarJak

Description

@JarJak

[Facebook\WebDriver\Exception\InvalidCookieDomainException] You may only set cookies for the current domain

Scenario Steps:

  1. $I->setCookie("visitedHome","yes",{"expire":1,"path":"/"})
    Error by using selenium #1 vendor/facebook/webdriver/lib/Remote/HttpCommandExecutor.php:287
    I haven't tested this in enough varying circumstances, but this fixed a number of failure-to-execute problems for me... #2 vendor/facebook/webdriver/lib/Remote/RemoteWebDriver.php:507
    UTF-8 bugs #3 vendor/facebook/webdriver/lib/Remote/RemoteExecuteMethod.php:38
    seeLink and dontSeeLink #4 vendor/facebook/webdriver/lib/WebDriverOptions.php:56
    Invalid parameter type passed as Cookie #5 Codeception\Module\WebDriver->setCookie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions