ขั้นตอนมีดังนี้
1.คลิกขวาที่ปุ่ม create แล้วเลือก inspect
2.หา Element โดยใช้ xpath
โค้ด: เลือกทั้งหมด
Syntax: //tag[@attribute=’value‘]
โค้ด: เลือกทั้งหมด
driver.find_element_by_xpath("//button[contains(text(),'Create')]")
driver.find_element_by_xpath("//div/button[contains(@class,'oe_list_add')]")
driver.find_element_by_css_selector(".oe_list_add")
--------------------------------------------------------------------------------------------------------------------------------------------