currentLocation.transform "missing parameter type"

Hi all,

for someone maybe easy question.

I just wanted to extract some info from current user location and save it as session param

code snippet:

.check(
currentLocation.transform((v, s) => v)
)

code above has compilation errors: “missing parameter type” with both parameters ‘v’ and ‘s’

Code snippet, which works fine:

.check(
css(“a…”, “id”)
.transform { (v, sess) => …

What is wrong with first code ? It is used in many examples. I should have all imports:

import io.gatling.core.Predef._
import io.gatling.http.Predef._

I am running on version 2.2.5

Thanks in advance