Skip to content

can not add cookie #130

@lidaling

Description

@lidaling

After adding a cookie, refresh, I still can not get the added cookie. Here are the codes, anybody has any idea?
Thanks.

err = webDriver.Get("http://localhost:9080")
	if err != nil {
		panic(fmt.Sprintf("Failed to load page: %s\n", err))
	}
	webDriver.AddCookie(&selenium.Cookie{
		Name:  "eds_aa",
		Value: "the check value",
	})
	webDriver.Refresh()

	cookies, _ := webDriver.GetCookies()
	for _, v := range cookies {
		log.Println("cookie is "+v.Name)
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions