:doc:`DeviceFarm <../../devicefarm>` / Client / get_test_grid_session

*********************
get_test_grid_session
*********************



.. py:method:: DeviceFarm.Client.get_test_grid_session(**kwargs)

  

  A session is an instance of a browser created through a ``RemoteWebDriver`` with the URL from  CreateTestGridUrlResult$url. You can use the following to look up sessions:

   

  
  * The session ARN (  GetTestGridSessionRequest$sessionArn).
   
  * The project ARN and a session ID (  GetTestGridSessionRequest$projectArn and  GetTestGridSessionRequest$sessionId).
  

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetTestGridSession>`_  


  **Request Syntax**
  ::

    response = client.get_test_grid_session(
        projectArn='string',
        sessionId='string',
        sessionArn='string'
    )
    
  :type projectArn: string
  :param projectArn: 

    The ARN for the project that this session belongs to. See  CreateTestGridProject and  ListTestGridProjects.

    

  
  :type sessionId: string
  :param sessionId: 

    An ID associated with this session.

    

  
  :type sessionArn: string
  :param sessionArn: 

    An ARN that uniquely identifies a  TestGridSession.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'testGridSession': {
              'arn': 'string',
              'status': 'ACTIVE'|'CLOSED'|'ERRORED',
              'created': datetime(2015, 1, 1),
              'ended': datetime(2015, 1, 1),
              'billingMinutes': 123.0,
              'seleniumProperties': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **testGridSession** *(dict) --* 

        The  TestGridSession that was requested.

        
        

        - **arn** *(string) --* 

          The ARN of the session.

          
        

        - **status** *(string) --* 

          The state of the session.

          
        

        - **created** *(datetime) --* 

          The time that the session was started.

          
        

        - **ended** *(datetime) --* 

          The time the session ended.

          
        

        - **billingMinutes** *(float) --* 

          The number of billed minutes that were used for this session.

          
        

        - **seleniumProperties** *(string) --* 

          A JSON object of options and parameters passed to the Selenium WebDriver.

          
    
  
  **Exceptions**
  
  *   :py:class:`DeviceFarm.Client.exceptions.NotFoundException`

  
  *   :py:class:`DeviceFarm.Client.exceptions.ArgumentException`

  
  *   :py:class:`DeviceFarm.Client.exceptions.InternalServiceException`

  