old_contents: """ Testing the "self.set_attribute()" and "self.set_attributes()" methods
      to modify a Google search into becoming a Bing search.
      set_attribute() -> Modifies the attribute of the first matching element.
      set_attributes() -> Modifies the attribute of all matching elements. """
  
  from seleniumbase import BaseCase
  
  
  class HackingTests(BaseCase):
      def test_hack_search(self):
          self.open("https://google.com/ncr")
          self.assert_element('input[title="Search"]')
          self.set_attribute('[action="/search"]', "action", "//bing.com/search")
          self.set_attributes('[value="Google Search"]', "value", "Bing Search")
          self.type('input[title="Search"]', "SeleniumBase GitHub")
          self.highlight('[value="Bing Search"]')
          self.click('[value="Bing Search"]')
          self.highlight("h1.b_logo")
          self.highlight_click('a[href*="github.com/seleniumbase/SeleniumBase"]')
          self.switch_to_newest_window()
          self.assert_element('[href="/seleniumbase/SeleniumBase"]')
          self.assert_true("seleniumbase/SeleniumBase" in self.get_current_url())
          self.click('a[title="examples"]')
          self.assert_text("examples", "strong.final-path")
          self.highlight_click('[title="test_hack_search.py"]')
          self.assert_text("test_hack_search.py", "strong.final-path")
  
new_contents: """ Testing the "self.set_attribute()" and "self.set_attributes()" methods
      to modify a Google search into becoming a Bing search.
      set_attribute() -> Modifies the attribute of the first matching element.
      set_attributes() -> Modifies the attribute of all matching elements. """
  
  from seleniumbase import BaseCase
  
  
  class HackingTests(BaseCase):
      def test_hack_search(self):
          self.open("https://google.com/ncr")
          self.assert_element('input[title="Search"]')
          self.set_attribute('[action="/search"]', "action", "//bing.com/search")
          self.set_attributes('[value="Google Search"]', "value", "Bing Search")
          self.type('input[title="Search"]', "SeleniumBase GitHub")
          self.sleep(0.5)
          self.js_click('[value="Bing Search"]')
          self.highlight("h1.b_logo")
          self.highlight_click('a[href*="github.com/seleniumbase/SeleniumBase"]')
          self.switch_to_newest_window()
          self.assert_element('[href="/seleniumbase/SeleniumBase"]')
          self.assert_true("seleniumbase/SeleniumBase" in self.get_current_url())
          self.click('a[title="examples"]')
          self.assert_text("examples", "strong.final-path")
          self.highlight_click('[title="test_hack_search.py"]')
          self.assert_text("test_hack_search.py", "strong.final-path")
  
subject: Update an example test