ChromeDriver yog dab tsi?
ChromeDriver yog dab tsi?

Video: ChromeDriver yog dab tsi?

Video: ChromeDriver yog dab tsi?
Video: What does WebDriver driver = new ChromeDriver() means? || Run Time Polymorphism Example in Selenium 2024, Hlis ntuj nqeg
Anonim

ChromeDriver yog ib qho executable uas Selenium WebDriver siv los tswj Chrome . Nws yog tswj hwm los ntawm pab pawg Chromium nrog kev pab los ntawm WebDriver contributors.

Ua raws li qhov xav tau, ChromeDriver siv rau dab tsi?

ChromeDriver . WebDriver yog qhov qhib qhov cuab yeej rau kev kuaj xyuas qhov webapps thoob plaws ntau lub browsers. Nws muab lub peev xwm rau kev nkag mus rau nplooj ntawv web, cov neeg siv tswv yim, kev ua JavaScript, thiab ntau dua. ChromeDriver yog ib tus neeg rau zaub mov nyob ib leeg uas siv W3C WebDriver tus qauv.

Ib sab saum toj no, qhov txawv ntawm WebDriver thiab ChromeDriver yog dab tsi? WebDriver yog lub interface, thaum ChromeDriver yog ib chav kawm uas siv WebDriver interface. Tiag tiag ChromeDriver txuas RemoteWebDriver uas siv WebDriver . Tsuas yog ntxiv Txhua WebDriver nyiam ChromeDriver , FirefoxDriver, EdgeDriver yuav tsum siv WebDriver.

Ib yam li ntawd, ChromeDriver EXE yog dab tsi?

ChromeDriver yog ib tus neeg rau zaub mov standalone executable uas siv WebDriver's JSON-wire raws tu qauv thiab ua haujlwm ua kua nplaum ntawm cov ntawv xeem thiab Google Chrome , raws li qhia nyob rau hauv daim duab nram qab no: • Cov kev ntsuam xyuas yuav tsum qhia txog txoj kev ntawm lub ChromeDriver executable ua ntej tsim qhov piv txwv ntawm Chrome.

Puas yog ChromeDriver muaj kev nyab xeeb?

ChromeDriver yog ib lub cuab yeej muaj zog, thiab nws tuaj yeem ua rau muaj kev puas tsuaj ntawm tes tsis ncaj ncees lawm. Thaum siv ChromeDriver , thov ua raws li cov lus qhia no los pab khaws cia nyab xeeb : Raws li kev cai, ChromeDriver tsuas tso cai rau kev sib txuas hauv zos xwb.

Pom zoo: