def test_488(self):
        """Add comments on a translation
        
        http://litmus.pculture.org/show_test.cgi?id=488
        """

        sel = self.selenium
        sel.set_timeout(testvars.MSTestVariables["TimeOut"])
        #get a video and open page
        website.SiteLogout(self, sel)
        test_video_url = website.get_video_with_translations(self, sel)
        print test_video_url
        sel.open(test_video_url)
        language = website.get_translated_lang(self, sel)

        #Open the Language tab / then the comments
        mslib.wait_for_element_present(
            self, sel, testvars.video_lang + ":contains('" + language + "')")
        sel.click(testvars.video_lang + ":contains('" + language + "')")
        mslib.wait_for_element_present(
            self, sel,
            testvars.video_lang_hd + ":contains('" + language + "')")
        sel.click(testvars.comments_tab)

        #Not logged in, enter a comment
        print "1. trying to enter a comment when not logged in"
        ctext = "this comment should never post"
        website.enter_comment_text(self, sel, ctext)
        website.verify_comment_text(self, sel, ctext, result="login")

        #Login and go to language comments page
        website.SiteLogIn(self, sel, testvars.siteuser, testvars.passw)
        sel.open(test_video_url)
        mslib.wait_for_element_present(
            self, sel, testvars.video_lang + ":contains('" + language + "')")
        sel.click(testvars.video_lang + ":contains('" + language + "')")
        mslib.wait_for_element_present(
            self, sel,
            testvars.video_lang_hd + ":contains('" + language + "')")
        sel.click(testvars.comments_tab)

        #Enter a 1-char comment
        print "2. entering a 1-char comment on Video Info"
        website.enter_comment_text(self, sel, "d")
        website.verify_comment_text(self, sel, "d")
        #Enter a normal comment
        print "3. entering a normal comment on Video Info"
        website.enter_comment_text(self, sel,
                                   comments_text.normal_comment_text)
        website.verify_comment_text(self, sel,
                                    comments_text.normal_comment_text)
        print "4. entering a too-long comment on Video Info"
        #Enter a too long comment
        website.enter_comment_text(self, sel,
                                   comments_text.normal_comment_text * 10)
        website.verify_comment_text(self,
                                    sel,
                                    comments_text.normal_comment_text,
                                    result="too long")
    def test_537(self):
        """Add comments on a translation using non-ascii characters
        
        http://litmus.pculture.org/show_test.cgi?id=537
        """
        
        sel = self.selenium
        sel.set_timeout(testvars.MSTestVariables["TimeOut"])
        #get a video and open page      
        website.SiteLogout(self,sel)
        test_video_url = website.get_video_with_translations(self,sel)
        print test_video_url
        sel.open(test_video_url)
        language = website.get_translated_lang(self,sel)
        
        
        #Login and go to language comments page
        website.SiteLogIn(self,sel,testvars.siteuser,testvars.passw)
        sel.open(test_video_url)
        mslib.wait_for_element_present(self,sel,testvars.video_lang+":contains('"+language+"')")
        sel.click(testvars.video_lang+":contains('"+language+"')")
        mslib.wait_for_element_present(self,sel,testvars.video_lang_hd+":contains('"+language+"')")
        sel.click(testvars.comments_tab) 

        #Enter some non-ascii comments
        print "1. entering croatian comment text"
        website.enter_comment_text(self,sel,comments_text.hr_comment_text)
        website.verify_comment_text(self,sel,comments_text.hr_comment_text)
        print "2. entering japanese comment text"
        website.enter_comment_text(self,sel,comments_text.jp_comment_text)
        website.verify_comment_text(self,sel,comments_text.jp_comment_text)
        print "3. entering russian comment text"
        website.enter_comment_text(self,sel,comments_text.ru_comment_text)
        website.verify_comment_text(self,sel,comments_text.ru_comment_text)
    def test_536(self):
        """Add comments on Video Info tab
        
        http://litmus.pculture.org/show_test.cgi?id=536
        """

        sel = self.selenium
        sel.set_timeout(testvars.MSTestVariables["TimeOut"])
        #get a video and open page
        website.SiteLogout(self, sel)
        test_video_url = website.get_video_with_translations(self, sel)
        print test_video_url
        sel.open(test_video_url)
        sel.click(testvars.video_video_info)
        mslib.wait_for_element_present(self, sel, testvars.info_comments_tab)
        sel.click(testvars.info_comments_tab)
        #Open the Original tab / then comments tab

        #Not logged in, enter a comment

        print "1. trying to enter a comment when not logged in"
        ctext = "this comment should never post"
        website.enter_comment_text(self, sel, ctext)
        website.verify_comment_text(self, sel, ctext, result="login")
        #Login
        website.SiteLogIn(self, sel, testvars.siteuser, testvars.passw)
        sel.open(test_video_url)
        sel.click(testvars.video_video_info)
        mslib.wait_for_element_present(self, sel, testvars.comments_tab)
        sel.click(testvars.comments_tab)
        #Enter a 1-char comment
        print "2. entering a 1-char comment on Video Info"
        website.enter_comment_text(self, sel, "d")
        website.verify_comment_text(self, sel, "d")
        #Enter a normal comment
        print "3. entering a normal comment on Video Info"
        website.enter_comment_text(self, sel,
                                   comments_text.normal_comment_text)
        website.verify_comment_text(self, sel,
                                    comments_text.normal_comment_text)
        print "4. entering a too-long comment on Video Info"
        #Enter a too long comment
        website.enter_comment_text(self, sel,
                                   comments_text.normal_comment_text * 10)
        website.verify_comment_text(self,
                                    sel,
                                    comments_text.normal_comment_text,
                                    result="too long")
    def test_488(self):
        """Add comments on a translation
        
        http://litmus.pculture.org/show_test.cgi?id=488
        """
        
        sel = self.selenium
        sel.set_timeout(testvars.MSTestVariables["TimeOut"])
        #get a video and open page      
        website.SiteLogout(self,sel)
        test_video_url = website.get_video_with_translations(self,sel)
        print test_video_url
        sel.open(test_video_url)
        language = website.get_translated_lang(self,sel)
        
        #Open the Language tab / then the comments
        mslib.wait_for_element_present(self,sel,testvars.video_lang+":contains('"+language+"')")
        sel.click(testvars.video_lang+":contains('"+language+"')")
        mslib.wait_for_element_present(self,sel,testvars.video_lang_hd+":contains('"+language+"')")
        sel.click(testvars.comments_tab) 

        #Not logged in, enter a comment
        print "1. trying to enter a comment when not logged in"
        ctext = "this comment should never post"
        website.enter_comment_text(self,sel,ctext)
        website.verify_comment_text(self,sel,ctext, result="login")
        
        #Login and go to language comments page
        website.SiteLogIn(self,sel,testvars.siteuser,testvars.passw)
        sel.open(test_video_url)
        mslib.wait_for_element_present(self,sel,testvars.video_lang+":contains('"+language+"')")
        sel.click(testvars.video_lang+":contains('"+language+"')")
        mslib.wait_for_element_present(self,sel,testvars.video_lang_hd+":contains('"+language+"')")
        sel.click(testvars.comments_tab) 

        #Enter a 1-char comment
        print "2. entering a 1-char comment on Video Info"
        website.enter_comment_text(self,sel,"d")
        website.verify_comment_text(self,sel,"d")
        #Enter a normal comment
        print "3. entering a normal comment on Video Info"
        website.enter_comment_text(self,sel,comments_text.normal_comment_text)
        website.verify_comment_text(self,sel,comments_text.normal_comment_text)
        print "4. entering a too-long comment on Video Info"
        #Enter a too long comment
        website.enter_comment_text(self,sel,comments_text.normal_comment_text * 10)
        website.verify_comment_text(self,sel,comments_text.normal_comment_text, result="too long")
    def test_487(self):
        """Add comments on original language
        
        http://litmus.pculture.org/show_test.cgi?id=487
        """

        sel = self.selenium
        sel.set_timeout(testvars.MSTestVariables["TimeOut"])

        #get a video and open page
        website.SiteLogout(self, sel)
        test_video_url = website.get_video_with_translations(self, sel)
        print test_video_url
        sel.open(test_video_url)
        sel.wait_for_page_to_load(testvars.MSTestVariables["TimeOut"])
        #Open the Original is the default tab when  video opened.
        sel.click(testvars.comments_tab)
        #Not logged in, enter a comment
        print "1. trying to enter a comment when not logged in"
        ctext = "this comment should never post"
        website.enter_comment_text(self, sel, ctext)
        website.verify_comment_text(self, sel, ctext, result="login")
        #Login
        website.SiteLogIn(self, sel, testvars.siteuser, testvars.passw)
        sel.open(test_video_url)
        sel.click(testvars.comments_tab)
        #Enter a 1-char comment
        print "2. entering a 1-char comment on original"
        website.enter_comment_text(self, sel, "d")
        website.verify_comment_text(self, sel, "d")
        #Enter a normal comment
        print "3. entering a normal comment on original"
        website.enter_comment_text(self, sel,
                                   comments_text.normal_comment_text)
        website.verify_comment_text(self, sel,
                                    comments_text.normal_comment_text)
        print "4. entering a too-long comment on original"
        #Enter a too long comment
        website.enter_comment_text(self, sel,
                                   comments_text.normal_comment_text * 10)
        website.verify_comment_text(self,
                                    sel,
                                    comments_text.normal_comment_text,
                                    result="too long")
    def test_536(self):
        """Add comments on Video Info tab
        
        http://litmus.pculture.org/show_test.cgi?id=536
        """
        
        sel = self.selenium
        sel.set_timeout(testvars.MSTestVariables["TimeOut"])
        #get a video and open page    
        website.SiteLogout(self,sel)
        test_video_url = website.get_video_with_translations(self,sel)
        print test_video_url
        sel.open(test_video_url)
        sel.click(testvars.video_video_info)
        mslib.wait_for_element_present(self,sel,testvars.info_comments_tab)
        sel.click(testvars.info_comments_tab)
        #Open the Original tab / then comments tab

        #Not logged in, enter a comment

        print "1. trying to enter a comment when not logged in"
        ctext = "this comment should never post"
        website.enter_comment_text(self,sel,ctext)
        website.verify_comment_text(self,sel,ctext, result="login")
        #Login
        website.SiteLogIn(self,sel,testvars.siteuser,testvars.passw)
        sel.open(test_video_url)
        sel.click(testvars.video_video_info)
        mslib.wait_for_element_present(self,sel,testvars.comments_tab)
        sel.click(testvars.comments_tab)
        #Enter a 1-char comment
        print "2. entering a 1-char comment on Video Info"
        website.enter_comment_text(self,sel,"d")
        website.verify_comment_text(self,sel,"d")
        #Enter a normal comment
        print "3. entering a normal comment on Video Info"
        website.enter_comment_text(self,sel,comments_text.normal_comment_text)
        website.verify_comment_text(self,sel,comments_text.normal_comment_text)
        print "4. entering a too-long comment on Video Info"
        #Enter a too long comment
        website.enter_comment_text(self,sel,comments_text.normal_comment_text * 10)
        website.verify_comment_text(self,sel,comments_text.normal_comment_text, result="too long")
    def test_487(self):
        """Add comments on original language
        
        http://litmus.pculture.org/show_test.cgi?id=487
        """
        
        sel = self.selenium
        sel.set_timeout(testvars.MSTestVariables["TimeOut"])

        #get a video and open page    
        website.SiteLogout(self,sel)
        test_video_url = website.get_video_with_translations(self,sel)
        print test_video_url
        sel.open(test_video_url)
        sel.wait_for_page_to_load(testvars.MSTestVariables["TimeOut"])
        #Open the Original is the default tab when  video opened.
        sel.click(testvars.comments_tab)
        #Not logged in, enter a comment
        print "1. trying to enter a comment when not logged in"
        ctext = "this comment should never post"
        website.enter_comment_text(self,sel,ctext)
        website.verify_comment_text(self,sel,ctext, result="login")
        #Login
        website.SiteLogIn(self,sel,testvars.siteuser,testvars.passw)
        sel.open(test_video_url)
        sel.click(testvars.comments_tab)
        #Enter a 1-char comment
        print "2. entering a 1-char comment on original"
        website.enter_comment_text(self,sel,"d")
        website.verify_comment_text(self,sel,"d")
        #Enter a normal comment
        print "3. entering a normal comment on original"
        website.enter_comment_text(self,sel,comments_text.normal_comment_text)
        website.verify_comment_text(self,sel,comments_text.normal_comment_text)
        print "4. entering a too-long comment on original"
        #Enter a too long comment
        website.enter_comment_text(self,sel,comments_text.normal_comment_text * 10)
        website.verify_comment_text(self,sel,comments_text.normal_comment_text, result="too long")
    def test_537(self):
        """Add comments on a translation using non-ascii characters
        
        http://litmus.pculture.org/show_test.cgi?id=537
        """

        sel = self.selenium
        sel.set_timeout(testvars.MSTestVariables["TimeOut"])
        #get a video and open page
        website.SiteLogout(self, sel)
        test_video_url = website.get_video_with_translations(self, sel)
        print test_video_url
        sel.open(test_video_url)
        language = website.get_translated_lang(self, sel)

        #Login and go to language comments page
        website.SiteLogIn(self, sel, testvars.siteuser, testvars.passw)
        sel.open(test_video_url)
        mslib.wait_for_element_present(
            self, sel, testvars.video_lang + ":contains('" + language + "')")
        sel.click(testvars.video_lang + ":contains('" + language + "')")
        mslib.wait_for_element_present(
            self, sel,
            testvars.video_lang_hd + ":contains('" + language + "')")
        sel.click(testvars.comments_tab)

        #Enter some non-ascii comments
        print "1. entering croatian comment text"
        website.enter_comment_text(self, sel, comments_text.hr_comment_text)
        website.verify_comment_text(self, sel, comments_text.hr_comment_text)
        print "2. entering japanese comment text"
        website.enter_comment_text(self, sel, comments_text.jp_comment_text)
        website.verify_comment_text(self, sel, comments_text.jp_comment_text)
        print "3. entering russian comment text"
        website.enter_comment_text(self, sel, comments_text.ru_comment_text)
        website.verify_comment_text(self, sel, comments_text.ru_comment_text)