Cov txheej txheem:

Selenium WebDriver cuam tshuam nrog browser li cas?
Selenium WebDriver cuam tshuam nrog browser li cas?

Video: Selenium WebDriver cuam tshuam nrog browser li cas?

Video: Selenium WebDriver cuam tshuam nrog browser li cas?
Video: How to scroll into view in Selenium Webdriver 2024, Kaum ib hlis
Anonim

Selenium WebDriver yog a browser automation moj khaum uas lees txais cov lus txib thiab xa mus rau a browser . Nws yog siv los ntawm a browser - tshwj xeeb tsav tsheb. Nws tswj cov browser los ntawm kev sib txuas lus ncaj qha nrog nws. Selenium WebDriver txhawb Java, C#, PHP, Python, Perl, Ruby.

Tom qab ntawd, ib tus tuaj yeem nug, qhov kev cai twg selenium cuam tshuam nrog browser?

Cov Ntaub Ntawv Kev Sib Txuas Lus - Los sib txuas lus ntawm cov neeg rau zaub mov thiab cov neeg siv khoom (browser), selenium web driver siv JSON . JSON Wire Protocol yog REST API uas hloov cov ntaub ntawv ntawm HTTP servers. Txhua Browser Tsav Tsheb muaj nws tus kheej HTTP server.

Tsis tas li, kuv yuav siv selenium WebDriver li cas? Xya theem pib ntawm Selenium Tests

  1. Tsim ib qhov WebDriver piv txwv.
  2. Nkag mus rau nplooj ntawv Web.
  3. Nrhiav ib qho HTML hauv lub vev xaib.
  4. Ua ib qho kev nqis tes ua ntawm lub ntsiab HTML.
  5. Cia siab tias qhov browser teb rau qhov ua.
  6. Khiav cov kev xeem thiab sau cov qhab nia xeem uas siv lub hauv paus kev xeem.
  7. Xaus qhov kev xeem.

Tsuas yog li ntawd, cov browsers twg txhawb selenium?

Browsers txhawb los ntawm Selenium WebDriver yog:

  • Firefox Browser.
  • Chrome browser.
  • Internet Explorer browser.
  • Ntug browser.
  • Safari browser.
  • Opera browser.

Selenium WebDriver yog dab tsi thiab nws ua haujlwm li cas?

Selenium WebDriver yog ib phau ntawm qhib qhov APIs uas yog siv los automate qhov kev ntsuam xyuas ntawm ib daim ntawv thov web. Cov cuab yeej no yog siv los automate web application testing kom paub tseeb tias nws ua haujlwm raws li xav tau. Nws txhawb ntau browsers xws li Safari, Firefox, IE, thiab Chrome.

Pom zoo: