php - Session [url] not available and is not among the last 1000 terminated sessions. How to solve this? -


when try launch

php behat.phar

the webdriver firefox window pops , feature test fails @ first step , skips rest. get:

...

given on "first.php" #featurecontext::visit()

session [url] not available , not among last 1000 terminated sessions.

active sessions are[ext. key 51191ae0-8f6f-49d0-27b322967296]

...

if use behat test passes. happens when try use selenium.

i'm using minkextension giveniamon() premade function

my behat.yml:

default:     paths:         features: features         bootstrap: features/bootstrap     extensions:         mink_extension.phar:             mink_loader: 'mink.phar'             base_url: 'http://10.0.0.10/'             goutte: ~             selenium2:                 wd_host: 'http://localhost:4444/wd/hub'                 capabilities:                     version: '' 

my featurecontext extends minkcontext. i've been searching solution days , couldn't solve this.

i'm working windows 7 firefox 26, selenium-server-standalone-2.42.2 , tried lower versions well. read in issues, session/"session-id"/url broken versions ago, shouldn't. reason can't pick right session.

sorry data quality, don't have internet connection @ workplace , it's quite restricted. that's why use .phar files instead of using composer. can't either copy-paste files , on. if have provide more data tell me , will.

it sounds grid-level timeout issue. should try increase browsertimeout , newsessionwaittimeout , see if helps.

source: session not available , not among last 1000 terminated sessions.

timeouts in grid should handled through webdriver.manage().timeouts(), control how different operations time out.

the browsertimeout should be:

  • higher socket lock timeout (45 seconds).
  • generally higher values used in webdriver.manage().timeouts(), since mechanism "last line of defense".

for issues, check also: http://localhost:4444/wd/hub/sessions


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -