Skip to content

Create 自動化 #2311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions examples/python/自動化
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service
import time

# ChromeDriverのパス(適宜変更してください)
service = Service(executable_path="/path/to/chromedriver")

# ブラウザ起動
driver = webdriver.Chrome(service=service)

# Airワーク採用管理のログインページにアクセス
driver.get("https://airwork.recruit.co.jp/") # URLを正確に入力してください

# ページ読み込み待機(必要に応じて調整)
time.sleep(2)

# 「ログイン」ボタンをクリック(テキスト一致で取得)
login_button = driver.find_element(By.XPATH, "//button[contains(text(), 'ログイン')]")
login_button.click()

# (必要に応じてログインフォーム入力に続く)

# 終了処理(確認用に5秒待機して閉じる)
time.sleep(5)
driver.quit()