def test_MDT_enter_bid(self):
        WebDriverWait(self.driver, 5).until(EC.element_to_be_clickable((By.XPATH, self.helper.get_xpath("create_workspace_btn"))))

        workspace_name = "MDT Enter Bid"
        return_msg = self.helper.open_new_workspace(workspace_name)

	logger.store_result('test_MDT_enter_bid','Call open new_workspace',datetime.today(),return_msg)

        self.assertEqual(return_msg, "OK", "Call to open_new_workspace failed: '" + return_msg + "'")
        print return_msg, "**** Enter bid ****" 
        #Verify the name of the workspace window that pops up
        self.driver.switch_to_window(self.driver.window_handles[-1])
        window_name = self.driver.title
        #Make sure the user has a valid connection
        return_msg = self.helper.is_valid_connection()
	
	logger.store_result('test_MDT_connection','Verify call to is_valid_connection',datetime.today(),return_msg)
        self.assertEqual(return_msg, "Connected", "Call to is_valid_connection failed: '" + return_msg + "'")

        #Open MDT and order book windows
        workspace_windows = ['mdt', 'order_book']
        self.assertTrue(self.helper.populate_workspace(workspace_windows), "Call to populate_workspace failed")

        #Set Qty to 1
        what = self.helper.get_xpath("mdt_qty1_btn")
        WebDriverWait(self.driver, 5).until(EC.element_to_be_clickable((By.XPATH, what)))
        self.driver.find_element_by_xpath(what).click()

        #Find bid price with qty in MDT window and enter order
        self.driver.find_element_by_xpath(self.helper.get_xpath("mdt_bid_has_value")).click()

        #Verify bid is resting in the market
        what = self.helper.get_xpath("mdt_working_order_bid")
        WebDriverWait(self.driver, 5).until(EC.presence_of_element_located((By.XPATH, what)))
        element = self.driver.find_element_by_xpath(what)
        self.assertIn('B:0', element.text, "B:0 not found")
        self.assertIn('W:1', element.text, "W:1 not found")

        #Get the price of the resting order
        element = self.driver.find_element_by_xpath(self.helper.get_xpath("mdt_working_bid_price"))
        order_price = element.text

        #Get the name of the contract based on the title of the MDT window
        element = self.driver.find_element_by_xpath(self.helper.get_xpath("mdt_title"))
        contract_name = (element.text).split(":")[0]
        
        #Verify values in order book
        return_msg = self.helper.validate_order(price=order_price, contract=contract_name)

	logger.store_result('test_MDT_enter_bid','Verify call to validate_order',datetime.today(),return_msg)
        self.assertEqual(return_msg, "OK", "Call to validate_order failed: '" + return_msg + "'")