from selenium import webdriver

from selenium.webdriver.common.by import By


class FindingBy():

    def test(self):
        url= "https://letskodeit.teachable.com/p/practice"
        driver = webdriver.Firefox()
        driver.get(url)
        elementById = driver.find_element(By.ID,"carselect")


        if elementById is not None :

            print("we found an element by Id")

        elementByXpath = driver.find_element(By.XPATH,"//button[@id='openwindow']")

        if elementByXpath is not None :

            print("we found an element by Css")




Test = FindingBy()

Test.test()
c911edb410988b53243a58d3da0603a4962f1b97
<mask token>


class FindingBy:

    def test(self):
        url = 'https://letskodeit.teachable.com/p/practice'
        driver = webdriver.Firefox()
        driver.get(url)
        elementById = driver.find_element(By.ID, 'carselect')
        if elementById is not None:
            print('we found an element by Id')
        elementByXpath = driver.find_element(By.XPATH,
            "//button[@id='openwindow']")
        if elementByXpath is not None:
            print('we found an element by Css')


<mask token>

<mask token>


class FindingBy:

    def test(self):
        url = 'https://letskodeit.teachable.com/p/practice'
        driver = webdriver.Firefox()
        driver.get(url)
        elementById = driver.find_element(By.ID, 'carselect')
        if elementById is not None:
            print('we found an element by Id')
        elementByXpath = driver.find_element(By.XPATH,
            "//button[@id='openwindow']")
        if elementByXpath is not None:
            print('we found an element by Css')


<mask token>
Test.test()

<mask token>


class FindingBy:

    def test(self):
        url = 'https://letskodeit.teachable.com/p/practice'
        driver = webdriver.Firefox()
        driver.get(url)
        elementById = driver.find_element(By.ID, 'carselect')
        if elementById is not None:
            print('we found an element by Id')
        elementByXpath = driver.find_element(By.XPATH,
            "//button[@id='openwindow']")
        if elementByXpath is not None:
            print('we found an element by Css')


Test = FindingBy()
Test.test()

from selenium import webdriver
from selenium.webdriver.common.by import By


class FindingBy:

    def test(self):
        url = 'https://letskodeit.teachable.com/p/practice'
        driver = webdriver.Firefox()
        driver.get(url)
        elementById = driver.find_element(By.ID, 'carselect')
        if elementById is not None:
            print('we found an element by Id')
        elementByXpath = driver.find_element(By.XPATH,
            "//button[@id='openwindow']")
        if elementByXpath is not None:
            print('we found an element by Css')


Test = FindingBy()
Test.test()

from selenium import webdriver

from selenium.webdriver.common.by import By


class FindingBy():

    def test(self):
        url= "https://letskodeit.teachable.com/p/practice"
        driver = webdriver.Firefox()
        driver.get(url)
        elementById = driver.find_element(By.ID,"carselect")


        if elementById is not None :

            print("we found an element by Id")

        elementByXpath = driver.find_element(By.XPATH,"//button[@id='openwindow']")

        if elementByXpath is not None :

            print("we found an element by Css")




Test = FindingBy()

Test.test()