'Scenario: Upload button for youtube id with html5 ids
Given I have created a Video component
After I enter a "http://youtu.be/t_not_exist" source to field number 1 I see message "No Timed Transcript"
And I see button "upload_new_timed_transcripts"
After I enter a "video_name_1.mp4" source to field number 2 Then I see status message "No Timed Transcript"
And I see button "upload_new_timed_transcripts"
After I upload the transcripts file "uk_transcripts.srt"I see message "Timed Transcript Uploaded Successfully"
When I clear field number 1 Then I see status message "Timed Transcript Found"
And I see value "video_name_1" in the field "Default Timed Transcript"
After saving the changes video captions should be visible
When I edit the component Then I see status message "Timed Transcript Found"'

def test_upload_button_w_html5_ids(self):

    self._create_video_component()
    self.edit_component()
    self.video.set_url_field('http://youtu.be/t_not_exist', 1)
    self.assertEqual(self.video.message('status'), 'No    Timed    Transcript')
    self.assertTrue(self.video.is_transcript_button_visible('upload_new_timed_transcripts'))
    self.video.set_url_field('video_name_1.mp4', 2)
    self.assertEqual(self.video.message('status'), 'No    Timed    Transcript')
    self.assertTrue(self.video.is_transcript_button_visible('upload_new_timed_transcripts'))
    self.video.upload_transcript('uk_transcripts.srt')
    self.assertEqual(self.video.message('status'), 'Timed    Transcript    Uploaded    Successfully')
    self.video.clear_field(1)
    self.assertEqual(self.video.message('status'), 'Timed    Transcript    Found')
    self.open_advanced_tab()
    self.assertTrue(self.video.verify_field_value('Default    Timed    Transcript', 'video_name_1'))
    self.save_unit_settings()
    self.assertTrue(self.video.is_captions_visible())
    self.edit_component()
    self.assertEqual(self.video.message('status'), 'Timed    Transcript    Found')
