Skip to main content
Sessionselenium log of a test session
TestMu AI
StatusCommunityBlog
Session

selenium log of a test session

To fetch selenum log that contains grid requests and reponses of a test session in plain json text.

GET
/sessions/{session_id}/log/selenium
selenium log of a test session
curl --request GET \
--url "https://api.lambdatest.com/automation/api/v1/sessions/{session_id}/log/selenium" \
--header "Authorization: Basic <encoded-value>"
{
"data": [
{
"logType": "server",
"testID": "5HLCQ-HPCWH-UOE2O-2CUFA",
"status": 0,
"timestamp": 1551356378609,
"Value": {
"level": "INFO",
"message": "Started new session 2F42BCCC-BF43-426A-A72F-F58F58167496 (org.openqa.selenium.safari.SafariDriverService)",
"timestamp": 1551356378609
}
}
]
}

Authorizations

Authorizationstringheaderrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

session_idstringrequired

Session ID

Response

application/json

successful operation

dataobject[]
data.logTypestring
Example: "server"
data.testIDstring
Example: "5HLCQ-HPCWH-UOE2O-2CUFA"
data.statusnumber
Example: 0
data.timestampnumber
Example: 1551356378609
data.Valueobject
selenium log of a test session
curl --request GET \
--url "https://api.lambdatest.com/automation/api/v1/sessions/{session_id}/log/selenium" \
--header "Authorization: Basic <encoded-value>"
{
"data": [
{
"logType": "server",
"testID": "5HLCQ-HPCWH-UOE2O-2CUFA",
"status": 0,
"timestamp": 1551356378609,
"Value": {
"level": "INFO",
"message": "Started new session 2F42BCCC-BF43-426A-A72F-F58F58167496 (org.openqa.selenium.safari.SafariDriverService)",
"timestamp": 1551356378609
}
}
]
}