Nov-29-2017, 02:20 PM
Hi Experts,
I have one web page and it has one tab "upload file" . when manually press that button screen pops up and i select excel file and then we I press sumbit it automatically calls oracle function and perform some action.
I want to automate all this using till sumit using python. I have reached the point where I can open the web page and found the xpath of the "upload file" tab,but I am unable to understand how perform all remaining actions.
Also I am unable to upload screenshot so that I can show you all the steps which I follow manually.
Please help in resolving this issue.
I have one web page and it has one tab "upload file" . when manually press that button screen pops up and i select excel file and then we I press sumbit it automatically calls oracle function and perform some action.
I want to automate all this using till sumit using python. I have reached the point where I can open the web page and found the xpath of the "upload file" tab,but I am unable to understand how perform all remaining actions.
Also I am unable to upload screenshot so that I can show you all the steps which I follow manually.
Please help in resolving this issue.
from selenium import webdriver from selenium.webdriver.common.keys import Keys #Getting local session of Chrome driver=webdriver.Chrome() #put here the adress of your page driver.get("http://mdmdv.gartner.com/mdm/app/marketingBounceBack") #put here the content you have put in Notepad, ie the XPath elem = driver.find_elements_by_xpath("//*[@id='emailTab']") #elem2 = driver.find_elements_by_xpath("//*[@id='emailBounceBacks']/div/div[2]/label") #("//*[@type='submit']") #print(elem.get_attribute("class")) #print(elem.get_attribute("value")) elem.click() driver.close()When I run this web page open ups.