Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Python ve Selenium Webdriver ile Test Otomasyonu

Python ve Selenium Webdriver ile Test Otomasyonu

Python ve Selenium Webdriver kullanarak, unittest ile nasıl bir test otomasyonu oluşturabiliriz? #python #selenium

Sinan Erdinç

July 11, 2018
Tweet

Other Decks in Programming

Transcript

  1. Ajanda ★ Python ve Kod Editörü (Pycharm) Kurulumu ★ Selenium

    ve Webdriver Nedir? ★ Webdriver Demo ★ Selenium ve Chrome Webdriver Kurulumu ★ UnitTest Modülü ile Otomasyon Demosu ★ Sorular 3
  2. Selenium & Webdriver • 2004, Jason Huggins, ThoughtWorks • Selenium

    1 & RC • 2007 Simon Stewart, ThoughtWorks • Python, Java, Ruby, .net • https://www.seleniumhq.org/about/contributors.jsp • Chromedriver, Geckodriver, IEdriver • JsonWireProtocol
  3. 8 Webdriver • Chromedriver • curl -i -H "Accept: application/json"

    -X POST -d '{"desiredCapabilities":{"browserName":"chrome"}}' http://localhost:9515/session • :9515/session/XX/url
  4. Selenium ve Chrome Webdriver Kurulumu • Virtualenv • Pip3 install

    selenium • https://chromedriver.storage.googleapis.com/index. html?path=2.40/ 10
  5. Webelement methodları • element.click() • element.get_attribute(attr) • element.size • element.tag_name

    • element.text • element.send_keys(*value) • element.submit() • element.clear() • element.is_displayed() • element.is_selected() #checkbox • element.is_enabled()