Remote (command_executor =session_url ,desired_capabilities = )Įlm = driver.find_element_by_xpath("xpath") Open python command line tool and use the below codeĭriver = webdriver. ![]() Now you can use the session id and url, in order to debug the locators. Self.write("In case you want to reuse session, the session_id and _url for current browser session are: %s,%s"%(ssion_id ,mand_executor._url)) #Print the session_id and _url in case the element is not found Self.write("Check your locator-'%s"%xpath) command_executor._url ) ) return dom_elementĭom_element = _element(xpath) ![]() write ( "In case you want to reuse session, the session_id and _url for current browser session are: %s,%s"% (driver. write ( "Check your locator-'%s"%xpath ) #Print the session_id and _url in case the element is not found self. find_element (xpath ) except Exception ,e: "Return the DOM element of the xpath or 'None' if the element is not found "ĭom_element = self.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |