Selenium Webdriver Tutorial
Selected Reading
- Selenium WebDriver - Discussion
- Selenium WebDriver - Useful Resources
- Selenium WebDriver - Quick Guide
- Double Click
- Right Click
- Capture Screenshots
- Scroll Operations
- Chrome WebDriver Options
- JavaScript Executor
- Select Support
- Wait Support
- Headless Execution
- Executing Tests in Multiple Browsers
- Handling Checkboxes
- Read/Write data from Excel
- Generating HTML Test Reports in Python
- Color Support
- Handling Edit Boxes
- Handling Links
- Alerts
- Windows
- Drag and Drop
- Forms
- Create a Basic Test
- Action Class
- Exceptions
- Cookies
- Backward and Forward Navigation
- Pop-ups
- Explicit and Implicit Wait
- Identify Multiple Elements
- Identify Single Element
- Browser Navigation
- Installation
- Introduction
- Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Right Click
Selenium Webdriver - Right Cpck
ium可以在行动组的帮助下进行摩擦运动、主要媒体、对一个要素的 h、右翼、拖拉和退步行动。 方法背景——浮标进行右侧扫描或点击某一元件。
The syntax for using the right Point or contextpoint is如下:
context_cpck(e=None)
这里,即正确点击的要素。 如果提到“None',则点击是在目前停用的位置上进行的。 我们必须从 se中补充这一发言。 网上进口行动与“行动任务”类别合作。
Code Implementation
使用右点击或点击的代码如下:
from selenium import webdriver from selenium.webdriver import ActionChains driver = webdriver.Chrome(executable_path= ../drivers/chromedriver ) #imppcit wait time driver.imppcitly_wait(5) #url launch driver.get("https://www.tutorialspoint.com/about/about_careers.htm") #identify element s = driver.find_element_by_xpath("//*[text()= Company ]") #object of ActionChains a = ActionChains(driver) #right cpck then perform a.context_cpck(s).perform()
Output
在实施后,与名称的联系得到了正确评价,所有新的选择都得到了正确评价。
Advertisements