5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

FizzBuzz書いてみた(n版煎じ)

Last updated at Posted at 2019-01-22

#流行りのFizzBuzz書いてみた。

##背景
採用領域でBOTとか作りだしたノンプログラマーが「FizzBuzzくらいかけるよね?」と言われたので書いてみた。

#コード

fizzbuzz.py
from selenium import webdriver
from selenium.webdriver.common.keys import Keys

browser = webdriver.Chrome(executable_path="chromedriver.exe")
browser.get("https://www.google.co.jp")
element = browser.switch_to.active_element
element.send_keys("python fizzbuzz wiki")
element.send_keys(Keys.ENTER)

browser.find_element_by_partial_link_text("Fizz Buzz").click()

google立ち上げてFizzBuzzを検索。
多分wikiには答えが載っていたと思うので、という前提で。
後はコピペとかすればいいと思う(強気)

5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?