from selenium import webdriver
class FromIdName():
    def test(self):
        baseURL="https://learn.letskodeit.com/p/practice"
        driver=webdriver.Chrome(executable_path="C:\\Users\\M524891\\PycharmProjects\\workspace_python\\drivers\\chromedriver.exe")
        driver.get(baseURL)
        element_by_id=driver.find_element_by_id("name")
        if element_by_id is not None:
            print("element found by id")
        else:
            print("element not found")
        element_by_name=driver.find_element_by_name("show-hide")
        if element_by_name is not None:
            print("element found by name")
        else:
            print("element not found")

c=FromIdName()
c.test()


1da2dbdcf25b6e0e6274aaae27d79042de253a54
<mask token>


class FromIdName:

    def test(self):
        baseURL = 'https://learn.letskodeit.com/p/practice'
        driver = webdriver.Chrome(executable_path=
            'C:\\Users\\M524891\\PycharmProjects\\workspace_python\\drivers\\chromedriver.exe'
            )
        driver.get(baseURL)
        element_by_id = driver.find_element_by_id('name')
        if element_by_id is not None:
            print('element found by id')
        else:
            print('element not found')
        element_by_name = driver.find_element_by_name('show-hide')
        if element_by_name is not None:
            print('element found by name')
        else:
            print('element not found')


<mask token>

<mask token>


class FromIdName:

    def test(self):
        baseURL = 'https://learn.letskodeit.com/p/practice'
        driver = webdriver.Chrome(executable_path=
            'C:\\Users\\M524891\\PycharmProjects\\workspace_python\\drivers\\chromedriver.exe'
            )
        driver.get(baseURL)
        element_by_id = driver.find_element_by_id('name')
        if element_by_id is not None:
            print('element found by id')
        else:
            print('element not found')
        element_by_name = driver.find_element_by_name('show-hide')
        if element_by_name is not None:
            print('element found by name')
        else:
            print('element not found')


<mask token>
c.test()

<mask token>


class FromIdName:

    def test(self):
        baseURL = 'https://learn.letskodeit.com/p/practice'
        driver = webdriver.Chrome(executable_path=
            'C:\\Users\\M524891\\PycharmProjects\\workspace_python\\drivers\\chromedriver.exe'
            )
        driver.get(baseURL)
        element_by_id = driver.find_element_by_id('name')
        if element_by_id is not None:
            print('element found by id')
        else:
            print('element not found')
        element_by_name = driver.find_element_by_name('show-hide')
        if element_by_name is not None:
            print('element found by name')
        else:
            print('element not found')


c = FromIdName()
c.test()

from selenium import webdriver


class FromIdName:

    def test(self):
        baseURL = 'https://learn.letskodeit.com/p/practice'
        driver = webdriver.Chrome(executable_path=
            'C:\\Users\\M524891\\PycharmProjects\\workspace_python\\drivers\\chromedriver.exe'
            )
        driver.get(baseURL)
        element_by_id = driver.find_element_by_id('name')
        if element_by_id is not None:
            print('element found by id')
        else:
            print('element not found')
        element_by_name = driver.find_element_by_name('show-hide')
        if element_by_name is not None:
            print('element found by name')
        else:
            print('element not found')


c = FromIdName()
c.test()

from selenium import webdriver
class FromIdName():
    def test(self):
        baseURL="https://learn.letskodeit.com/p/practice"
        driver=webdriver.Chrome(executable_path="C:\\Users\\M524891\\PycharmProjects\\workspace_python\\drivers\\chromedriver.exe")
        driver.get(baseURL)
        element_by_id=driver.find_element_by_id("name")
        if element_by_id is not None:
            print("element found by id")
        else:
            print("element not found")
        element_by_name=driver.find_element_by_name("show-hide")
        if element_by_name is not None:
            print("element found by name")
        else:
            print("element not found")

c=FromIdName()
c.test()

