from seleniumbase import BaseCase


class EdgeTests(BaseCase):

    def test_edge(self):
        if self.browser != "edge":
            print("\n  This test is only for Microsoft Edge (Chromium)!")
            print('  (Run this test using "--edge" or "--browser=edge")')
            self.skip('Use "--edge" or "--browser=edge"')
        self.open("edge://settings/help")
        self.assert_element('img[alt="Edge logo"] + span')
        self.highlight('#section_about div + div')
        self.highlight('#section_about div + div > div')
        self.highlight('img[alt="Edge logo"]')
        self.highlight('img[alt="Edge logo"] + span')
        self.highlight('#section_about div + div > div + div')
        self.highlight('#section_about div + div > div + div + div > div')

from seleniumbase import BaseCase


class EdgeTests(BaseCase):

    def test_edge(self):
        if self.browser != "edge":
            print("\n  This test is only for Microsoft Edge (Chromium)!")
            print('  (Run this test using "--edge" or "--browser=edge")')
            self.skip('Use "--edge" or "--browser=edge"')
        self.open("edge://settings/help")
        self.highlight('div[role="main"]')
        self.highlight('img[srcset*="logo"]')
        self.assert_text("Microsoft Edge", 'img[srcset*="logo"] + div')
        self.highlight('img[srcset*="logo"] + div span:nth-of-type(1)')
        self.highlight('img[srcset*="logo"] + div span:nth-of-type(2)')
        self.highlight('span[aria-live="assertive"]')
        self.highlight('a[href*="chromium"]')

Update the Edge example test
Update the Edge example test

  from seleniumbase import BaseCase
  
  
  class EdgeTests(BaseCase):
  
      def test_edge(self):
          if self.browser != "edge":
              print("\n  This test is only for Microsoft Edge (Chromium)!")
              print('  (Run this test using "--edge" or "--browser=edge")')
              self.skip('Use "--edge" or "--browser=edge"')
          self.open("edge://settings/help")
+         self.highlight('div[role="main"]')
-         self.assert_element('img[alt="Edge logo"] + span')
-         self.highlight('#section_about div + div')
-         self.highlight('#section_about div + div > div')
-         self.highlight('img[alt="Edge logo"]')
+         self.highlight('img[srcset*="logo"]')
-         self.highlight('img[alt="Edge logo"] + span')
-         self.highlight('#section_about div + div > div + div')
-         self.highlight('#section_about div + div > div + div + div > div')
+         self.assert_text("Microsoft Edge", 'img[srcset*="logo"] + div')
+         self.highlight('img[srcset*="logo"] + div span:nth-of-type(1)')
+         self.highlight('img[srcset*="logo"] + div span:nth-of-type(2)')
+         self.highlight('span[aria-live="assertive"]')
+         self.highlight('a[href*="chromium"]')
  
Update the Edge example test
## Code Before:
from seleniumbase import BaseCase


class EdgeTests(BaseCase):

    def test_edge(self):
        if self.browser != "edge":
            print("\n  This test is only for Microsoft Edge (Chromium)!")
            print('  (Run this test using "--edge" or "--browser=edge")')
            self.skip('Use "--edge" or "--browser=edge"')
        self.open("edge://settings/help")
        self.assert_element('img[alt="Edge logo"] + span')
        self.highlight('#section_about div + div')
        self.highlight('#section_about div + div > div')
        self.highlight('img[alt="Edge logo"]')
        self.highlight('img[alt="Edge logo"] + span')
        self.highlight('#section_about div + div > div + div')
        self.highlight('#section_about div + div > div + div + div > div')

## Instruction:
Update the Edge example test
## Code After:
from seleniumbase import BaseCase


class EdgeTests(BaseCase):

    def test_edge(self):
        if self.browser != "edge":
            print("\n  This test is only for Microsoft Edge (Chromium)!")
            print('  (Run this test using "--edge" or "--browser=edge")')
            self.skip('Use "--edge" or "--browser=edge"')
        self.open("edge://settings/help")
        self.highlight('div[role="main"]')
        self.highlight('img[srcset*="logo"]')
        self.assert_text("Microsoft Edge", 'img[srcset*="logo"] + div')
        self.highlight('img[srcset*="logo"] + div span:nth-of-type(1)')
        self.highlight('img[srcset*="logo"] + div span:nth-of-type(2)')
        self.highlight('span[aria-live="assertive"]')
        self.highlight('a[href*="chromium"]')
