CopyPastor

Detecting plagiarism made easy.

Score: 2; Reported for: String similarity, Exact paragraph match Open both answers

Possible Plagiarism

Reposted on 2024-05-13
by Arshana Atapattu

Original Post

Original - Posted on 2024-05-07
by Arshana Atapattu



            
Present in both answers; Present only in the new answer; Present only in the old answer;

When i tried `ActionChains(driver).drag_and_drop(drag,drop).perform()` it didn't work for me. It shows that I select the elements, but never drag it. What worked for me is this answer [1] in a separate question.
You can try it in the following way.
drag = WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "xpath1"))) drop = WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "xpath2"))) action = ActionChains(driver) action.click_and_hold(drag).pause(2).move_to_element(drop).release(drop).perform()

These are the required imports:
from selenium.webdriver import ActionChains from selenium.webdriver.common.by import By from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC


[1] https://stackoverflow.com/a/60000050/18201390
When i tried `ActionChains(driver).drag_and_drop(drag,drop).perform()` it didn't work for me. It shows that I select the elements, but never drag it. What worked for me is this answer [1] in a separate question.
You can try it in the following way.
drag = WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "xpath1"))) drop = WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "xpath2"))) action = ActionChains(driver) action.click_and_hold(drag).pause(2).move_to_element(drop).release(drop).perform()

These are the required imports:
from selenium.webdriver import ActionChains from selenium.webdriver.common.by import By from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC


[1] https://stackoverflow.com/a/60000050/18201390

        
Present in both answers; Present only in the new answer; Present only in the old answer;