Package: zgautomation
ZG-AUTOMATIONThis Module Will Help You To Intract With Your Browser With Selenium Framework[!IMPORTANT]This Is Trial Version Of ThiszgautomationModule.More Updates Will Be Available.InstallationpipinstallzgautomationExamples Of Using Our Modulefromzgautomationimportzgautomatedriver=zgautomate(url="https://github.com/zazbhai",browser="chrome",headless=False)driver.text_by_xpath("//span[@itemprop='name']")driver.click_by_css("a.btn.btn-block")No Need To Close use Close Syntax It Will Close It By Its Own.Parameters And FunctionsBasic Parametersurl = Takes Url Which You Want To Openbrowser = Name Of Browser You Want To Useheadless =  Choose Whether Open Browser In Headless Mode Or Notwait = Time To Wait For Elements To AppearBasic Functionsrefresh = Refresh The Web Pageback = Go Backforward = Go Forwardscript = Executes Javascript Commands On Web PageText Functionstext_by_name = Gives The Outer HTML Text Associated With Given Name Attributetext_by_css = Gives The Outer HTML Text Associated With Given Css Attributetext_by_class = Gives The Outer HTML Text Associated With Given Class Attributetext_by_id = Gives The Outer HTML Text Associated With Given Id Attributetext_by_link_text = Gives The Outer HTML Text Associated With Given Link Texttext_by_xpath = Gives The Outer HTML Text Associated With Given Xpathtext_by_partial_link_text = Gives The Outer HTML Text Associated With Given Partial Link Texttext_by_tag = Gives The Outer HTML Text Associated With Given Tag NameClick Functionsclick_by_name = Click On Given Element Associated With Given Name Attributeclick_by_class = Click On Given Element Associated With Given Class Attributeclick_by_id = Click On Given Element Associated With Given Id Attributeclick_by_css = Click On Given Element Associated With Given Css Attributeclick_by_tag = Click On Given Element Associated With Given Tag Nameclick_by_xpath = Click On Given Element Associated With Given Xpathclick_by_link_text = Click On Given Element Associated With Given Link Textclick_by_partial_link_text = Click On Given Element Associated With Given Partial Link Textscreenshot = Saves Screenshot Of The Web Page In The Given PathType Functionstype_by_class = Type Given Text In Selected Class's Input Fieldtype_by_css = Type Given Text In Selected Css's Input Fieldtype_by_xpath = Type Given Text In Selected Xpath's Input Fieldtype_by_id = Type Given Text In Selected Id's Input Fieldtype_by_tag = Type Given Text In Selected Tag Attribute's Input Fieldtype_by_name = Type Given Text In Selected Name's Input Fieldtype_by_link_text = Type Given Text In Selected Link Text's Input Fieldtype_by_partial_link_text = Type Given Text In Selected Partial Link Text's Input Field[!NOTE]Getting Outer HTML And Title Text Will Directly Printed So There Is No Need To Declare Any Variable And Print It.Example Of screenshot functionfromzgautomationimportzgautomatedriver=zgautomate(url="https://github.com/zazbhai",browser="chrome",headless=False)#This Code Will Open The Given Web Url, Take A Screenshot And Save It As test_img.pngdriver.screenshot("test_img.png")Giving Input In Google TextFeild With get_by_class Function#keys Is Special Class To Give Keyboard Functionalityfromzgautomationimportzgautomate,keysfromtimeimportsleepdriver=zgautomate(url="https://google.com",browser="chrome",headless=False)#Keys.ENTER Will Press Enter After Typing @zaz_bhai In Search Boxdriver.type_by_class("gLFyf","@zaz_bhai"+keys.ENTER)sleep(4)Keys ListNormal KeysNULL, CANCEL, HELP, BACKSPACE, BACK_SPACE, TAB, CLEAR, RETURN, ENTER, SHIFT, LEFT_SHIFT, CONTROL, LEFT_CONTROL, ALT, LEFT_ALT, PAUSE, ESCAPE, SPACE, PAGE_UP, PAGE_DOWN, END, HOME, LEFT, ARROW_LEFT , UP, ARROW_UP, RIGHT, ARROW_RIGHT, DOWN, ARROW_DOWN, INSERT, DELETE, SEMICOLON, EQUALSNumber Pad KeysNUMPAD0, NUMPAD1, NUMPAD2, NUMPAD3, NUMPAD4, NUMPAD5, NUMPAD6, NUMPAD7, NUMPAD8, NUMPAD9, MULTIPLY, ADD, SEPARATOR, SUBTRACT, DECIMAL, DIVIDEFunction KeysF1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, META , COMMAND, ZENKAKU_HANKAKUThis Module Is Made ByZaz YagmiTo Report Bugs And Errors You Can Contact Me OnTelegram