jeudi 12 mars 2020

Setting cookies in Selenium IDE

I'm using Selenium IDE recorder for Firefox to record tests. The version of the FF is 73th

https://addons.mozilla.org/en-US/firefox/addon/selenium-ide/

After recording, I exported this test file as .side. It looks like below:

{
  "id": "7f2d52ec-75d5-43b0-acf3-dbb94e7076a3",
  "version": "2.0",
  "name": "adobe",
  "url": "https://example.com",
  "tests": [{
    "id": "f3fd08ea-a3b9-4cad-8852-f14772e66170",
    "name": "submit",
    "commands": [
    {
      "id": "5d99afc0-06ac-4d7c-ac99-2b2de7b29dbb",
      "comment": "",
      "command": "open",
      "target": "/en/uploads",
      "targets": [],
      "value": ""
    }, 


    {
      "id": "01377d7d-c2f0-4253-84d5-42fb376a227f",
      "comment": "",
      "command": "setWindowSize",
      "target": "1920x1080",
      "targets": [],
      "
     ...

The question is, how can I set cookies here? or is there any other way to convert this side file to programming language syntax to use officially provided way?

Official documentation provides code only for programming languages.

https://www.selenium.dev/documentation/en/support_packages/working_with_cookies/

Aucun commentaire:

Enregistrer un commentaire