selenium api

ActionChains(driver).key_down(Keys.CONTROL).send_keys('c').key_up(Keys.CONTROL).perform()

Here is what the above code is Doing:
1. It’s finding the element with the id “copy-button” and clicking it.
2. It’s finding the element with the id “text-input” and sending the keys “Hello World”.
3. It’s finding the element with the id “copy-button” and clicking it.
4. It’s finding the element with the id “textarea” and sending the keys “Control + c”.