How to use driver.get method in Appium

Best JavaScript code snippet using appium

doc-api.spec.js

Source:doc-api.spec.js Github

copy

Full Screen

1describe("ui-grid", function() {2 describe("api/ui.grid.autoResize", function() {3 beforeEach(function() {4 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.autoResize");5 });6 7});8 describe("api/ui.grid.cellNav", function() {9 beforeEach(function() {10 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.cellNav");11 });12 13});14 describe("api/ui.grid.cellNav.constant:uiGridCellNavConstants", function() {15 beforeEach(function() {16 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.cellNav.constant:uiGridCellNavConstants");17 });18 19});20 describe("api/ui.grid.cellNav.object:CellNav", function() {21 beforeEach(function() {22 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.cellNav.object:CellNav");23 });24 25});26 describe("api/ui.grid.cellNav.api:GridRow", function() {27 beforeEach(function() {28 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.cellNav.api:GridRow");29 });30 31});32 describe("api/ui.grid.cellNav.service:uiGridCellNavService", function() {33 beforeEach(function() {34 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.cellNav.service:uiGridCellNavService");35 });36 37});38 describe("api/ui.grid.cellNav:Grid.cellNav", function() {39 beforeEach(function() {40 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.cellNav:Grid.cellNav");41 });42 43});44 describe("api/ui.grid.cellNav.api:PublicApi", function() {45 beforeEach(function() {46 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.cellNav.api:PublicApi");47 });48 49});50 describe("api/ui.grid.cellNav.api:GridOptions", function() {51 beforeEach(function() {52 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.cellNav.api:GridOptions");53 });54 55});56 describe("api/ui.grid.cellNav.api:ColumnDef", function() {57 beforeEach(function() {58 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.cellNav.api:ColumnDef");59 });60 61});62 describe("api/ui.grid.cellNav.directive:uiCellNav", function() {63 beforeEach(function() {64 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.cellNav.directive:uiCellNav");65 });66 67});68 describe("api/ui.grid.cellNav.directive:uiGridCell", function() {69 beforeEach(function() {70 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.cellNav.directive:uiGridCell");71 });72 73});74 describe("api/ui.grid.edit", function() {75 beforeEach(function() {76 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.edit");77 });78 79});80 describe("api/ui.grid.edit.constant:uiGridEditConstants", function() {81 beforeEach(function() {82 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.edit.constant:uiGridEditConstants");83 });84 85});86 describe("api/ui.grid.edit.service:uiGridEditService", function() {87 beforeEach(function() {88 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.edit.service:uiGridEditService");89 });90 91});92 describe("api/ui.grid.edit.api:PublicApi", function() {93 beforeEach(function() {94 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.edit.api:PublicApi");95 });96 97});98 describe("api/ui.grid.edit.api:GridOptions", function() {99 beforeEach(function() {100 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.edit.api:GridOptions");101 });102 103});104 describe("api/ui.grid.edit.api:ColumnDef", function() {105 beforeEach(function() {106 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.edit.api:ColumnDef");107 });108 109});110 describe("api/ui.grid.edit.directive:uiGridEdit", function() {111 beforeEach(function() {112 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.edit.directive:uiGridEdit");113 });114 115});116 describe("api/ui.grid.edit.directive:uiGridRenderContainer", function() {117 beforeEach(function() {118 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.edit.directive:uiGridRenderContainer");119 });120 121});122 describe("api/ui.grid.edit.directive:uiGridCell", function() {123 beforeEach(function() {124 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.edit.directive:uiGridCell");125 });126 127});128 describe("api/ui.grid.edit.api:GridRow", function() {129 beforeEach(function() {130 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.edit.api:GridRow");131 });132 133});134 describe("api/ui.grid.edit.directive:uiGridEditor", function() {135 beforeEach(function() {136 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.edit.directive:uiGridEditor");137 });138 139});140 describe("api/ui.grid.edit.directive:input", function() {141 beforeEach(function() {142 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.edit.directive:input");143 });144 145});146 describe("api/ui.grid.edit.directive:uiGridEditDropdown", function() {147 beforeEach(function() {148 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.edit.directive:uiGridEditDropdown");149 });150 151});152 describe("api/ui.grid.edit.directive:uiGridEditFileChooser", function() {153 beforeEach(function() {154 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.edit.directive:uiGridEditFileChooser");155 });156 157});158 describe("api/ui.grid.expandable", function() {159 beforeEach(function() {160 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.expandable");161 });162 163});164 describe("api/ui.grid.expandable.service:uiGridExpandableService", function() {165 beforeEach(function() {166 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.expandable.service:uiGridExpandableService");167 });168 169});170 describe("api/ui.grid.expandable.api:PublicApi", function() {171 beforeEach(function() {172 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.expandable.api:PublicApi");173 });174 175});176 describe("api/ui.grid.expandable.api:GridRow", function() {177 beforeEach(function() {178 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.expandable.api:GridRow");179 });180 181});182 describe("api/ui.grid.expandable.api:GridOptions", function() {183 beforeEach(function() {184 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.expandable.api:GridOptions");185 });186 187});188 describe("api/ui.grid.expandable.directive:uiGrid", function() {189 beforeEach(function() {190 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.expandable.directive:uiGrid");191 });192 193});194 describe("api/ui.grid.expandable.class:Grid", function() {195 beforeEach(function() {196 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.expandable.class:Grid");197 });198 199});200 describe("api/ui.grid.expandable.directive:uiGridExpandableRow", function() {201 beforeEach(function() {202 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.expandable.directive:uiGridExpandableRow");203 });204 205});206 describe("api/ui.grid.expandable.directive:uiGridRow", function() {207 beforeEach(function() {208 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.expandable.directive:uiGridRow");209 });210 211});212 describe("api/ui.grid.expandable.directive:uiGridViewport", function() {213 beforeEach(function() {214 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.expandable.directive:uiGridViewport");215 });216 217});218 describe("api/ui.grid.exporter", function() {219 beforeEach(function() {220 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.exporter");221 });222 223});224 describe("api/ui.grid.exporter.constant:uiGridExporterConstants", function() {225 beforeEach(function() {226 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.exporter.constant:uiGridExporterConstants");227 });228 229});230 describe("api/ui.grid.exporter.service:uiGridExporterService", function() {231 beforeEach(function() {232 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.exporter.service:uiGridExporterService");233 });234 235});236 describe("api/ui.grid.exporter.api:PublicApi", function() {237 beforeEach(function() {238 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.exporter.api:PublicApi");239 });240 241});242 describe("api/ui.grid.exporter.api:GridOptions", function() {243 beforeEach(function() {244 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.exporter.api:GridOptions");245 });246 247});248 describe("api/ui.grid.exporter.api:ColumnDef", function() {249 beforeEach(function() {250 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.exporter.api:ColumnDef");251 });252 253});254 describe("api/exporterMenuAllData", function() {255 beforeEach(function() {256 browser.driver.get("http://127.0.0.1:9999/docs/#/api/exporterMenuAllData");257 });258 259});260 describe("api/exporterMenuVisibleData", function() {261 beforeEach(function() {262 browser.driver.get("http://127.0.0.1:9999/docs/#/api/exporterMenuVisibleData");263 });264 265});266 describe("api/exporterMenuSelectedData", function() {267 beforeEach(function() {268 browser.driver.get("http://127.0.0.1:9999/docs/#/api/exporterMenuSelectedData");269 });270 271});272 describe("api/ui.grid.exporter.api:GridRow", function() {273 beforeEach(function() {274 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.exporter.api:GridRow");275 });276 277});278 describe("api/ui.grid.exporter.directive:uiGridExporter", function() {279 beforeEach(function() {280 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.exporter.directive:uiGridExporter");281 });282 283});284 describe("api/ui.grid.grouping", function() {285 beforeEach(function() {286 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.grouping");287 });288 289});290 describe("api/ui.grid.grouping.constant:uiGridGroupingConstants", function() {291 beforeEach(function() {292 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.grouping.constant:uiGridGroupingConstants");293 });294 295});296 describe("api/ui.grid.grouping.service:uiGridGroupingService", function() {297 beforeEach(function() {298 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.grouping.service:uiGridGroupingService");299 });300 301});302 describe("api/ui.grid.grouping.grid:grouping", function() {303 beforeEach(function() {304 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.grouping.grid:grouping");305 });306 307});308 describe("api/ui.grid.grouping.api:PublicApi", function() {309 beforeEach(function() {310 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.grouping.api:PublicApi");311 });312 313});314 describe("api/ui.grid.grouping.api:GridOptions", function() {315 beforeEach(function() {316 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.grouping.api:GridOptions");317 });318 319});320 describe("api/ui.grid.grouping.api:ColumnDef", function() {321 beforeEach(function() {322 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.grouping.api:ColumnDef");323 });324 325});326 describe("api/ui.grid.grouping.directive:uiGridGrouping", function() {327 beforeEach(function() {328 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.grouping.directive:uiGridGrouping");329 });330 331});332 describe("api/ui.grid.importer", function() {333 beforeEach(function() {334 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.importer");335 });336 337});338 describe("api/ui.grid.importer.constant:uiGridImporterConstants", function() {339 beforeEach(function() {340 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.importer.constant:uiGridImporterConstants");341 });342 343});344 describe("api/ui.grid.importer.service:uiGridImporterService", function() {345 beforeEach(function() {346 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.importer.service:uiGridImporterService");347 });348 349});350 describe("api/ui.grid.importer.api:PublicApi", function() {351 beforeEach(function() {352 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.importer.api:PublicApi");353 });354 355});356 describe("api/ui.grid.importer.api:GridOptions", function() {357 beforeEach(function() {358 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.importer.api:GridOptions");359 });360 361});362 describe("api/ui.grid.importer.directive:uiGridImporter", function() {363 beforeEach(function() {364 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.importer.directive:uiGridImporter");365 });366 367});368 describe("api/ui.grid.importer.directive:uiGridImporterMenuItem", function() {369 beforeEach(function() {370 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.importer.directive:uiGridImporterMenuItem");371 });372 373});374 describe("api/ui.grid.infiniteScroll", function() {375 beforeEach(function() {376 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.infiniteScroll");377 });378 379});380 describe("api/ui.grid.infiniteScroll.service:uiGridInfiniteScrollService", function() {381 beforeEach(function() {382 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.infiniteScroll.service:uiGridInfiniteScrollService");383 });384 385});386 describe("api/ui.grid.infiniteScroll.api:PublicAPI", function() {387 beforeEach(function() {388 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.infiniteScroll.api:PublicAPI");389 });390 391});392 describe("api/ui.grid.infiniteScroll.api:GridOptions", function() {393 beforeEach(function() {394 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.infiniteScroll.api:GridOptions");395 });396 397});398 describe("api/ui.grid.infiniteScroll.directive:uiGridInfiniteScroll", function() {399 beforeEach(function() {400 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.infiniteScroll.directive:uiGridInfiniteScroll");401 });402 403});404 describe("api/ui.grid.moveColumns", function() {405 beforeEach(function() {406 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.moveColumns");407 });408 409});410 describe("api/ui.grid.moveColumns.service:uiGridMoveColumnService", function() {411 beforeEach(function() {412 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.moveColumns.service:uiGridMoveColumnService");413 });414 415});416 describe("api/ui.grid.moveColumns.api:PublicApi", function() {417 beforeEach(function() {418 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.moveColumns.api:PublicApi");419 });420 421});422 describe("api/ui.grid.moveColumns.api:GridOptions", function() {423 beforeEach(function() {424 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.moveColumns.api:GridOptions");425 });426 427});428 describe("api/ui.grid.moveColumns.api:ColumnDef", function() {429 beforeEach(function() {430 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.moveColumns.api:ColumnDef");431 });432 433});434 describe("api/ui.grid.moveColumns.directive:uiGridMoveColumns", function() {435 beforeEach(function() {436 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.moveColumns.directive:uiGridMoveColumns");437 });438 439});440 describe("api/ui.grid.moveColumns.directive:uiGridHeaderCell", function() {441 beforeEach(function() {442 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.moveColumns.directive:uiGridHeaderCell");443 });444 445});446 describe("api/ui.grid.pagination", function() {447 beforeEach(function() {448 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.pagination");449 });450 451});452 describe("api/ui.grid.pagination.service:uiGridPaginationService", function() {453 beforeEach(function() {454 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.pagination.service:uiGridPaginationService");455 });456 457});458 describe("api/ui.grid.pagination.api:PublicAPI", function() {459 beforeEach(function() {460 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.pagination.api:PublicAPI");461 });462 463});464 describe("api/ui.grid.pagination.api:GridOptions", function() {465 beforeEach(function() {466 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.pagination.api:GridOptions");467 });468 469});470 describe("api/ui.grid.pagination.directive:uiGridPagination", function() {471 beforeEach(function() {472 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.pagination.directive:uiGridPagination");473 });474 475});476 describe("api/ui.grid.pagination.directive:uiGridPager", function() {477 beforeEach(function() {478 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.pagination.directive:uiGridPager");479 });480 481});482 describe("api/ui.grid.pinning", function() {483 beforeEach(function() {484 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.pinning");485 });486 487});488 describe("api/ui.grid.pinning.api:PublicApi", function() {489 beforeEach(function() {490 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.pinning.api:PublicApi");491 });492 493});494 describe("api/ui.grid.pinning.api:GridOptions", function() {495 beforeEach(function() {496 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.pinning.api:GridOptions");497 });498 499});500 describe("api/ui.grid.pinning.api:ColumnDef", function() {501 beforeEach(function() {502 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.pinning.api:ColumnDef");503 });504 505});506 describe("api/ui.grid.resizeColumns", function() {507 beforeEach(function() {508 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.resizeColumns");509 });510 511});512 describe("api/ui.grid.resizeColumns.api:GridOptions", function() {513 beforeEach(function() {514 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.resizeColumns.api:GridOptions");515 });516 517});518 describe("api/ui.grid.resizeColumns.api:ColumnDef", function() {519 beforeEach(function() {520 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.resizeColumns.api:ColumnDef");521 });522 523});524 describe("api/ui.grid.resizeColumns.api:PublicApi", function() {525 beforeEach(function() {526 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.resizeColumns.api:PublicApi");527 });528 529});530 describe("api/ui.grid.resizeColumns.directive:uiGridResizeColumns", function() {531 beforeEach(function() {532 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.resizeColumns.directive:uiGridResizeColumns");533 });534 535 536});537 describe("api/ui.grid.resizeColumns.directive:uiGridColumnResizer", function() {538 beforeEach(function() {539 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.resizeColumns.directive:uiGridColumnResizer");540 });541 542 // TODO: e2e specs?543 544 // TODO: post-resize a horizontal scroll event should be fired545});546 describe("api/ui.grid.rowEdit", function() {547 beforeEach(function() {548 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.rowEdit");549 });550 551});552 describe("api/ui.grid.rowEdit.constant:uiGridRowEditConstants", function() {553 beforeEach(function() {554 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.rowEdit.constant:uiGridRowEditConstants");555 });556 557});558 describe("api/ui.grid.rowEdit.service:uiGridRowEditService", function() {559 beforeEach(function() {560 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.rowEdit.service:uiGridRowEditService");561 });562 563});564 describe("api/ui.grid.rowEdit.api:PublicApi", function() {565 beforeEach(function() {566 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.rowEdit.api:PublicApi");567 });568 569});570 describe("api/ui.grid.rowEdit.api:GridOptions", function() {571 beforeEach(function() {572 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.rowEdit.api:GridOptions");573 });574 575});576 describe("api/ui.grid.rowEdit.directive:uiGridEdit", function() {577 beforeEach(function() {578 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.rowEdit.directive:uiGridEdit");579 });580 581});582 describe("api/ui.grid.rowEdit.directive:uiGridViewport", function() {583 beforeEach(function() {584 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.rowEdit.directive:uiGridViewport");585 });586 587});588 describe("api/ui.grid.saveState", function() {589 beforeEach(function() {590 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.saveState");591 });592 593});594 describe("api/ui.grid.saveState.constant:uiGridSaveStateConstants", function() {595 beforeEach(function() {596 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.saveState.constant:uiGridSaveStateConstants");597 });598 599});600 describe("api/ui.grid.saveState.service:uiGridSaveStateService", function() {601 beforeEach(function() {602 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.saveState.service:uiGridSaveStateService");603 });604 605});606 describe("api/ui.grid.saveState.api:PublicApi", function() {607 beforeEach(function() {608 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.saveState.api:PublicApi");609 });610 611});612 describe("api/ui.grid.saveState.api:GridOptions", function() {613 beforeEach(function() {614 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.saveState.api:GridOptions");615 });616 617});618 describe("api/ui.grid.saveState.directive:uiGridSaveState", function() {619 beforeEach(function() {620 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.saveState.directive:uiGridSaveState");621 });622 623});624 describe("api/ui.grid.selection", function() {625 beforeEach(function() {626 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.selection");627 });628 629});630 describe("api/ui.grid.selection.constant:uiGridSelectionConstants", function() {631 beforeEach(function() {632 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.selection.constant:uiGridSelectionConstants");633 });634 635});636 describe("api/ui.grid.selection.api:GridRow", function() {637 beforeEach(function() {638 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.selection.api:GridRow");639 });640 641});642 describe("api/ui.grid.selection.service:uiGridSelectionService", function() {643 beforeEach(function() {644 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.selection.service:uiGridSelectionService");645 });646 647});648 describe("api/ui.grid.selection.grid:selection", function() {649 beforeEach(function() {650 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.selection.grid:selection");651 });652 653});654 describe("api/ui.grid.selection.api:PublicApi", function() {655 beforeEach(function() {656 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.selection.api:PublicApi");657 });658 659});660 describe("api/ui.grid.selection.api:GridOptions", function() {661 beforeEach(function() {662 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.selection.api:GridOptions");663 });664 665});666 describe("api/ui.grid.selection.directive:uiGridSelection", function() {667 beforeEach(function() {668 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.selection.directive:uiGridSelection");669 });670 671});672 describe("api/ui.grid.selection.directive:uiGridViewport", function() {673 beforeEach(function() {674 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.selection.directive:uiGridViewport");675 });676 677});678 describe("api/ui.grid.selection.directive:uiGridCell", function() {679 beforeEach(function() {680 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.selection.directive:uiGridCell");681 });682 683});684 describe("api/ui.grid.treeBase", function() {685 beforeEach(function() {686 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.treeBase");687 });688 689});690 describe("api/ui.grid.treeBase.constant:uiGridTreeBaseConstants", function() {691 beforeEach(function() {692 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.treeBase.constant:uiGridTreeBaseConstants");693 });694 695});696 describe("api/ui.grid.treeBase.service:uiGridTreeBaseService", function() {697 beforeEach(function() {698 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.treeBase.service:uiGridTreeBaseService");699 });700 701});702 describe("api/ui.grid.treeBase.api:ColumnDef", function() {703 beforeEach(function() {704 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.treeBase.api:ColumnDef");705 });706 707});708 describe("api/ui.grid.treeBase.grid:treeBase", function() {709 beforeEach(function() {710 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.treeBase.grid:treeBase");711 });712 713});714 describe("api/ui.grid.treeBase.api:PublicApi", function() {715 beforeEach(function() {716 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.treeBase.api:PublicApi");717 });718 719});720 describe("api/ui.grid.treeBase.api:GridOptions", function() {721 beforeEach(function() {722 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.treeBase.api:GridOptions");723 });724 725});726 describe("api/ui.grid.treeBase.directive:uiGridTreeRowHeaderButtons", function() {727 beforeEach(function() {728 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.treeBase.directive:uiGridTreeRowHeaderButtons");729 });730 731});732 describe("api/ui.grid.treeBase.directive:uiGridTreeBaseExpandAllButtons", function() {733 beforeEach(function() {734 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.treeBase.directive:uiGridTreeBaseExpandAllButtons");735 });736 737});738 describe("api/ui.grid.treeBase.directive:uiGridViewport", function() {739 beforeEach(function() {740 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.treeBase.directive:uiGridViewport");741 });742 743});744 describe("api/ui.grid.treeView", function() {745 beforeEach(function() {746 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.treeView");747 });748 749});750 describe("api/ui.grid.treeView.constant:uiGridTreeViewConstants", function() {751 beforeEach(function() {752 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.treeView.constant:uiGridTreeViewConstants");753 });754 755});756 describe("api/ui.grid.treeView.service:uiGridTreeViewService", function() {757 beforeEach(function() {758 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.treeView.service:uiGridTreeViewService");759 });760 761});762 describe("api/ui.grid.treeView.grid:treeView", function() {763 beforeEach(function() {764 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.treeView.grid:treeView");765 });766 767});768 describe("api/ui.grid.treeView.api:PublicApi", function() {769 beforeEach(function() {770 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.treeView.api:PublicApi");771 });772 773});774 describe("api/ui.grid.treeView.api:GridOptions", function() {775 beforeEach(function() {776 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.treeView.api:GridOptions");777 });778 779});780 describe("api/ui.grid.treeView.directive:uiGridTreeView", function() {781 beforeEach(function() {782 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.treeView.directive:uiGridTreeView");783 });784 785});786 describe("api/ui.grid.validate", function() {787 beforeEach(function() {788 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.validate");789 });790 791});792 describe("api/ui.grid.validate.service:uiGridValidateService", function() {793 beforeEach(function() {794 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.validate.service:uiGridValidateService");795 });796 797});798 describe("api/ui.grid.validate.api:PublicApi", function() {799 beforeEach(function() {800 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.validate.api:PublicApi");801 });802 803});804 describe("api/ui.grid.validate.directive:uiGridValidate", function() {805 beforeEach(function() {806 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.validate.directive:uiGridValidate");807 });808 809});810 describe("api/ui.grid.service:uiGridColumnMenuService", function() {811 beforeEach(function() {812 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.service:uiGridColumnMenuService");813 });814 815});816 describe("api/ui.grid.directive:uiGridColumnMenu", function() {817 beforeEach(function() {818 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGridColumnMenu");819 });820 821});822 describe("api/ui.grid.gridMenuService", function() {823 beforeEach(function() {824 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.gridMenuService");825 });826 827});828 describe("api/ui.grid.directive:uiGridMenu", function() {829 beforeEach(function() {830 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGridMenu");831 });832 833 834});835 describe("api/ui.grid.directive:uiGridOneBind", function() {836 beforeEach(function() {837 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGridOneBind");838 });839 840});841 describe("api/ui.grid.directive:uiGridOneBindSrc", function() {842 beforeEach(function() {843 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGridOneBindSrc");844 });845 846});847 describe("api/ui.grid.directive:uiGridOneBindText", function() {848 beforeEach(function() {849 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGridOneBindText");850 });851 852});853 describe("api/ui.grid.directive:uiGridOneBindHref", function() {854 beforeEach(function() {855 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGridOneBindHref");856 });857 858});859 describe("api/ui.grid.directive:uiGridOneBindClass", function() {860 beforeEach(function() {861 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGridOneBindClass");862 });863 864});865 describe("api/ui.grid.directive:uiGridOneBindHtml", function() {866 beforeEach(function() {867 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGridOneBindHtml");868 });869 870});871 describe("api/ui.grid.directive:uiGridOneBindAlt", function() {872 beforeEach(function() {873 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGridOneBindAlt");874 });875 876});877 describe("api/ui.grid.directive:uiGridOneBindStyle", function() {878 beforeEach(function() {879 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGridOneBindStyle");880 });881 882});883 describe("api/ui.grid.directive:uiGridOneBindValue", function() {884 beforeEach(function() {885 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGridOneBindValue");886 });887 888});889 describe("api/ui.grid.directive:uiGridOneBindId", function() {890 beforeEach(function() {891 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGridOneBindId");892 });893 894});895 describe("api/ui.grid.directive:uiGridOneBindIdGrid", function() {896 beforeEach(function() {897 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGridOneBindIdGrid");898 });899 900});901 describe("api/ui.grid.directive:uiGridOneBindTitle", function() {902 beforeEach(function() {903 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGridOneBindTitle");904 });905 906});907 describe("api/ui.grid.directive:uiGridOneBindAriaLabel", function() {908 beforeEach(function() {909 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGridOneBindAriaLabel");910 });911 912});913 describe("api/ui.grid.directive:uiGridOneBindAriaLabelledby", function() {914 beforeEach(function() {915 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGridOneBindAriaLabelledby");916 });917 918});919 describe("api/ui.grid.directive:uiGridOneBindAriaLabelledbyGrid", function() {920 beforeEach(function() {921 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGridOneBindAriaLabelledbyGrid");922 });923 924});925 describe("api/ui.grid.directive:uiGridOneBindAriaDescribedby", function() {926 beforeEach(function() {927 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGridOneBindAriaDescribedby");928 });929 930});931 describe("api/ui.grid.directive:uiGridOneBindAriaDescribedbyGrid", function() {932 beforeEach(function() {933 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGridOneBindAriaDescribedbyGrid");934 });935 936});937 describe("api/ui.grid.directive:uiGridStyle", function() {938 beforeEach(function() {939 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGridStyle");940 });941 942 it('should apply the right class to the element', function () {943 element(by.css('.blah')).getCssValue('border-top-width')944 .then(function(c) {945 expect(c).toContain('1px');946 });947 });948});949 describe("api/ui.grid.directive:uiGrid", function() {950 beforeEach(function() {951 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.directive:uiGrid");952 });953 954});955 describe("api/ui.grid.core.api:PublicApi", function() {956 beforeEach(function() {957 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.core.api:PublicApi");958 });959 960});961 describe("api/ui.grid.class:Grid", function() {962 beforeEach(function() {963 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.class:Grid");964 });965 966});967 describe("api/ui.grid.class:GridApi", function() {968 beforeEach(function() {969 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.class:GridApi");970 });971 972});973 describe("api/ui.grid.class:GridColumn", function() {974 beforeEach(function() {975 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.class:GridColumn");976 });977 978});979 describe("api/ui.grid.class:GridOptions", function() {980 beforeEach(function() {981 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.class:GridOptions");982 });983 984});985 describe("api/ui.grid.class:GridOptions.columnDef", function() {986 beforeEach(function() {987 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.class:GridOptions.columnDef");988 });989 990});991 describe("api/ui.grid.class:GridRenderContainer", function() {992 beforeEach(function() {993 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.class:GridRenderContainer");994 });995 996});997 describe("api/ui.grid.class:GridRow", function() {998 beforeEach(function() {999 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.class:GridRow");1000 });1001 1002});1003 describe("api/ui.grid.class:GridRowColumn", function() {1004 beforeEach(function() {1005 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.class:GridRowColumn");1006 });1007 1008});1009 describe("api/ui.grid.class:ScrollEvent", function() {1010 beforeEach(function() {1011 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.class:ScrollEvent");1012 });1013 1014});1015 describe("api/ui.grid.service:gridClassFactory", function() {1016 beforeEach(function() {1017 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.service:gridClassFactory");1018 });1019 1020});1021 describe("api/ui.grid.service:rowSearcher", function() {1022 beforeEach(function() {1023 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.service:rowSearcher");1024 });1025 1026});1027 describe("api/ui.grid.class:RowSorter", function() {1028 beforeEach(function() {1029 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.class:RowSorter");1030 });1031 1032});1033 describe("api/ui.grid.service:GridUtil", function() {1034 beforeEach(function() {1035 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.service:GridUtil");1036 });1037 1038});1039 describe("api/ui.grid.service:GridUtil.focus", function() {1040 beforeEach(function() {1041 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.service:GridUtil.focus");1042 });1043 1044});1045 describe("api/ui.grid.i18n", function() {1046 beforeEach(function() {1047 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.i18n");1048 });1049 1050});1051 describe("api/ui.grid.i18n.constant:i18nConstants", function() {1052 beforeEach(function() {1053 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.i18n.constant:i18nConstants");1054 });1055 1056});1057 describe("api/ui.grid.i18n.service:i18nService", function() {1058 beforeEach(function() {1059 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.i18n.service:i18nService");1060 });1061 1062});1063 describe("api/index", function() {1064 beforeEach(function() {1065 browser.driver.get("http://127.0.0.1:9999/docs/#/api/index");1066 });1067 1068});1069 describe("api/ui.grid.e2eTestLibrary", function() {1070 beforeEach(function() {1071 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.e2eTestLibrary");1072 });1073 1074});1075 describe("api/ui.grid.e2eTestLibrary.api:gridTestObject", function() {1076 beforeEach(function() {1077 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.e2eTestLibrary.api:gridTestObject");1078 });1079 1080});1081 describe("api/ui.grid.e2eTestLibrary", function() {1082 beforeEach(function() {1083 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.e2eTestLibrary");1084 });1085 1086});1087 describe("api/ui.grid.e2eTestLibrary.api:gridTest", function() {1088 beforeEach(function() {1089 browser.driver.get("http://127.0.0.1:9999/docs/#/api/ui.grid.e2eTestLibrary.api:gridTest");1090 });1091 1092});...

Full Screen

Full Screen

element_finding_test.js

Source:element_finding_test.js Github

copy

Full Screen

...28 describe('finding elements', function() {29 test.it(30 'should work after loading multiple pages in a row',31 function() {32 driver.get(Pages.formPage);33 driver.get(Pages.xhtmlTestPage);34 driver.findElement(By.linkText('click me')).click();35 waitForTitleToBe('We Arrive Here');36 });37 describe('By.id()', function() {38 test.it('should work', function() {39 driver.get(Pages.xhtmlTestPage);40 driver.findElement(By.id('linkId')).click();41 waitForTitleToBe('We Arrive Here');42 });43 test.it('should fail if ID not present on page', function() {44 driver.get(Pages.formPage);45 driver.findElement(By.id('nonExistantButton')).46 then(fail, function(e) {47 assert(e.code).equalTo(error.ErrorCode.NO_SUCH_ELEMENT);48 });49 });50 test.ignore(browsers(Browser.ANDROID)).it(51 'should find multiple elements by ID even though that ' +52 'is malformed HTML',53 function() {54 driver.get(Pages.nestedPage);55 driver.findElements(By.id('2')).then(function(elements) {56 assert(elements.length).equalTo(8);57 });58 });59 });60 describe('By.linkText()', function() {61 test.it('should be able to click on link identified by text', function() {62 driver.get(Pages.xhtmlTestPage);63 driver.findElement(By.linkText('click me')).click();64 waitForTitleToBe('We Arrive Here');65 });66 test.it(67 'should be able to find elements by partial link text', function() {68 driver.get(Pages.xhtmlTestPage);69 driver.findElement(By.partialLinkText('ick me')).click();70 waitForTitleToBe('We Arrive Here');71 });72 test.it('should work when link text contains equals sign', function() {73 driver.get(Pages.xhtmlTestPage);74 var id = driver.findElement(By.linkText('Link=equalssign')).75 getAttribute('id');76 assert(id).equalTo('linkWithEqualsSign');77 });78 test.it('matches by partial text when containing equals sign',79 function() {80 driver.get(Pages.xhtmlTestPage);81 var id = driver.findElement(By.partialLinkText('Link=')).82 getAttribute('id');83 assert(id).equalTo('linkWithEqualsSign');84 });85 test.it('works when searching for multiple and text contains =',86 function() {87 driver.get(Pages.xhtmlTestPage);88 driver.findElements(By.linkText('Link=equalssign')).89 then(function(elements) {90 assert(elements.length).equalTo(1);91 return elements[0].getAttribute('id');92 }).93 then(function(id) {94 assert(id).equalTo('linkWithEqualsSign');95 });96 });97 test.it(98 'works when searching for multiple with partial text containing =',99 function() {100 driver.get(Pages.xhtmlTestPage);101 driver.findElements(By.partialLinkText('Link=')).102 then(function(elements) {103 assert(elements.length).equalTo(1);104 return elements[0].getAttribute('id');105 }).106 then(function(id) {107 assert(id).equalTo('linkWithEqualsSign');108 });109 });110 test.it('should be able to find multiple exact matches',111 function() {112 driver.get(Pages.xhtmlTestPage);113 driver.findElements(By.linkText('click me')).114 then(function(elements) {115 assert(elements.length).equalTo(2);116 });117 });118 test.it('should be able to find multiple partial matches',119 function() {120 driver.get(Pages.xhtmlTestPage);121 driver.findElements(By.partialLinkText('ick me')).122 then(function(elements) {123 assert(elements.length).equalTo(2);124 });125 });126 test.ignore(browsers(Browser.OPERA)).127 it('works on XHTML pages', function() {128 driver.get(test.whereIs('actualXhtmlPage.xhtml'));129 var el = driver.findElement(By.linkText('Foo'));130 assert(el.getText()).equalTo('Foo');131 });132 });133 describe('By.name()', function() {134 test.it('should work', function() {135 driver.get(Pages.formPage);136 var el = driver.findElement(By.name('checky'));137 assert(el.getAttribute('value')).equalTo('furrfu');138 });139 test.it('should find multiple elements with same name', function() {140 driver.get(Pages.nestedPage);141 driver.findElements(By.name('checky')).then(function(elements) {142 assert(elements.length).greaterThan(1);143 });144 });145 test.it(146 'should be able to find elements that do not support name property',147 function() {148 driver.get(Pages.nestedPage);149 driver.findElement(By.name('div1'));150 // Pass if this does not return an error.151 });152 test.it('shoudl be able to find hidden elements by name', function() {153 driver.get(Pages.formPage);154 driver.findElement(By.name('hidden'));155 // Pass if this does not return an error.156 });157 });158 describe('By.className()', function() {159 test.it('should work', function() {160 driver.get(Pages.xhtmlTestPage);161 var el = driver.findElement(By.className('extraDiv'));162 assert(el.getText()).startsWith('Another div starts here.');163 });164 test.it('should work when name is first name among many', function() {165 driver.get(Pages.xhtmlTestPage);166 var el = driver.findElement(By.className('nameA'));167 assert(el.getText()).equalTo('An H2 title');168 });169 test.it('should work when name is last name among many', function() {170 driver.get(Pages.xhtmlTestPage);171 var el = driver.findElement(By.className('nameC'));172 assert(el.getText()).equalTo('An H2 title');173 });174 test.it('should work when name is middle of many', function() {175 driver.get(Pages.xhtmlTestPage);176 var el = driver.findElement(By.className('nameBnoise'));177 assert(el.getText()).equalTo('An H2 title');178 });179 test.it('should work when name surrounded by whitespace', function() {180 driver.get(Pages.xhtmlTestPage);181 var el = driver.findElement(By.className('spaceAround'));182 assert(el.getText()).equalTo('Spaced out');183 });184 test.it('should fail if queried name only partially matches', function() {185 driver.get(Pages.xhtmlTestPage);186 driver.findElement(By.className('nameB')).187 then(fail, function(e) {188 assert(e.code).equalTo(error.ErrorCode.NO_SUCH_ELEMENT);189 });190 });191 test.it('should be able to find multiple matches', function() {192 driver.get(Pages.xhtmlTestPage);193 driver.findElements(By.className('nameC')).then(function(elements) {194 assert(elements.length).greaterThan(1);195 });196 });197 test.it('does not permit compound class names', function() {198 driver.get(Pages.xhtmlTestPage);199 driver.findElement(By.className('a b')).then(fail, pass);200 driver.findElements(By.className('a b')).then(fail, pass);201 function pass() {}202 });203 });204 describe('By.xpath()', function() {205 test.it('should work with multiple matches', function() {206 driver.get(Pages.xhtmlTestPage);207 driver.findElements(By.xpath('//div')).then(function(elements) {208 assert(elements.length).greaterThan(1);209 });210 });211 test.it('should work for selectors using contains keyword', function() {212 driver.get(Pages.nestedPage);213 driver.findElement(By.xpath('//a[contains(., "hello world")]'));214 // Pass if no error.215 });216 });217 describe('By.tagName()', function() {218 test.it('works', function() {219 driver.get(Pages.formPage);220 var el = driver.findElement(By.tagName('input'));221 assert(el.getTagName()).equalTo('input');222 });223 test.it('can find multiple elements', function() {224 driver.get(Pages.formPage);225 driver.findElements(By.tagName('input')).then(function(elements) {226 assert(elements.length).greaterThan(1);227 });228 });229 });230 describe('By.css()', function() {231 test.it('works', function() {232 driver.get(Pages.xhtmlTestPage);233 driver.findElement(By.css('div.content'));234 // Pass if no error.235 });236 test.it('can find multiple elements', function() {237 driver.get(Pages.xhtmlTestPage);238 driver.findElements(By.css('p')).then(function(elements) {239 assert(elements.length).greaterThan(1);240 });241 // Pass if no error.242 });243 test.it(244 'should find first matching element when searching by ' +245 'compound CSS selector',246 function() {247 driver.get(Pages.xhtmlTestPage);248 var el = driver.findElement(By.css('div.extraDiv, div.content'));249 assert(el.getAttribute('class')).equalTo('content');250 });251 test.it('should be able to find multiple elements by compound selector',252 function() {253 driver.get(Pages.xhtmlTestPage);254 driver.findElements(By.css('div.extraDiv, div.content')).255 then(function(elements) {256 assertClassIs(elements[0], 'content');257 assertClassIs(elements[1], 'extraDiv');258 function assertClassIs(el, expected) {259 assert(el.getAttribute('class')).equalTo(expected);260 }261 });262 });263 // IE only supports short version option[selected].264 test.ignore(browsers(Browser.IE)).265 it('should be able to find element by boolean attribute', function() {266 driver.get(test.whereIs(267 'locators_tests/boolean_attribute_selected.html'));268 var el = driver.findElement(By.css('option[selected="selected"]'));269 assert(el.getAttribute('value')).equalTo('two');270 });271 test.it(272 'should be able to find element with short ' +273 'boolean attribute selector',274 function() {275 driver.get(test.whereIs(276 'locators_tests/boolean_attribute_selected.html'));277 var el = driver.findElement(By.css('option[selected]'));278 assert(el.getAttribute('value')).equalTo('two');279 });280 test.it(281 'should be able to find element with short boolean attribute ' +282 'selector on HTML4 page',283 function() {284 driver.get(test.whereIs(285 'locators_tests/boolean_attribute_selected_html4.html'));286 var el = driver.findElement(By.css('option[selected]'));287 assert(el.getAttribute('value')).equalTo('two');288 });289 });290 });...

Full Screen

Full Screen

xcloud.spec.js

Source:xcloud.spec.js Github

copy

Full Screen

1describe('xCloud', () => {2 it('should not experience long webdriver calls', () => {3 // browser.getLogs('logcat');4 driver.startRecordingScreen();5 driver.takeScreenshot();6 driver.takeScreenshot();7 driver.getPageSource();8 driver.takeScreenshot();9 driver.getPageSource();10 driver.takeScreenshot();11 driver.getPageSource();12 driver.takeScreenshot();13 driver.stopRecordingScreen();14 driver.getCurrentPackage();15 driver.getCurrentActivity();16 driver.getPageSource();17 // browser.getLogs('logcat');18 driver.startRecordingScreen();19 driver.takeScreenshot();20 driver.getPageSource();21 driver.takeScreenshot();22 driver.getPageSource();23 driver.takeScreenshot();24 driver.getPageSource();25 driver.takeScreenshot();26 driver.getPageSource();27 // browser.getLogs('logcat');28 // NO STOPPING!!!!29 driver.startRecordingScreen();30 driver.takeScreenshot();31 driver.takeScreenshot();32 driver.getPageSource();33 driver.takeScreenshot();34 driver.getPageSource();35 driver.takeScreenshot();36 driver.getPageSource();37 driver.takeScreenshot();38 driver.stopRecordingScreen();39 driver.takeScreenshot();40 driver.getPageSource();41 // browser.getLogs('logcat');42 driver.startRecordingScreen();43 for(let i=0; i < 100; i++) {44 driver.pressKeyCode(69);45 }46 driver.takeScreenshot();47 driver.getPageSource();48 driver.takeScreenshot();49 driver.getPageSource();50 driver.takeScreenshot();51 driver.getPageSource();52 driver.stopRecordingScreen();53 driver.takeScreenshot();54 driver.getPageSource();55 // browser.getLogs('logcat');56 driver.startRecordingScreen();57 for(let i=0; i < 100; i++) {58 driver.pressKeyCode(69);59 }60 driver.takeScreenshot();61 driver.getPageSource();62 driver.takeScreenshot();63 driver.getPageSource();64 driver.takeScreenshot();65 driver.getPageSource();66 driver.stopRecordingScreen();67 driver.takeScreenshot();68 driver.getPageSource();69 driver.takeScreenshot();70 driver.getPageSource();71 driver.takeScreenshot();72 driver.getPageSource();73 // browser.getLogs('logcat');74 driver.startRecordingScreen();75 driver.takeScreenshot();76 driver.getPageSource();77 driver.stopRecordingScreen();78 driver.takeScreenshot();79 driver.getPageSource();80 // browser.getLogs('logcat');81 driver.startRecordingScreen();82 driver.takeScreenshot();83 driver.getPageSource();84 driver.takeScreenshot();85 driver.getPageSource();86 driver.takeScreenshot();87 driver.getPageSource();88 driver.stopRecordingScreen();89 driver.takeScreenshot();90 driver.getPageSource();91 driver.takeScreenshot();92 driver.getPageSource();93 driver.takeScreenshot();94 driver.getPageSource();95 // browser.getLogs('logcat');96 driver.startRecordingScreen();97 driver.takeScreenshot();98 driver.getPageSource();99 driver.stopRecordingScreen();100 driver.takeScreenshot();101 driver.getPageSource();102 driver.takeScreenshot();103 driver.getPageSource();104 driver.takeScreenshot();105 driver.getPageSource();106 driver.takeScreenshot();107 driver.getPageSource();108 driver.takeScreenshot();109 driver.getPageSource();110 driver.takeScreenshot();111 driver.getPageSource();112 driver.takeScreenshot();113 driver.getPageSource();114 driver.takeScreenshot();115 driver.getPageSource();116 driver.takeScreenshot();117 driver.getPageSource();118 // VERY STRANGE, NOW THERE IS A STOP119 driver.stopRecordingScreen();120 driver.getPageSource();121 // browser.getLogs('logcat');122 driver.startRecordingScreen();123 driver.takeScreenshot();124 driver.getPageSource();125 driver.stopRecordingScreen();126 driver.getPageSource();127 // browser.getLogs('logcat');128 driver.startRecordingScreen();129 driver.takeScreenshot();130 driver.getPageSource();131 driver.stopRecordingScreen();132 driver.getPageSource();133 // browser.getLogs('logcat');134 driver.startRecordingScreen();135 for(let i=0; i < 100; i++) {136 driver.pressKeyCode(69);137 }138 driver.takeScreenshot();139 driver.getPageSource();140 driver.stopRecordingScreen();141 driver.getPageSource();142 // browser.getLogs('logcat');143 driver.startRecordingScreen();144 driver.takeScreenshot();145 driver.getPageSource();146 driver.stopRecordingScreen();147 driver.getPageSource();148 // browser.getLogs('logcat');149 driver.startRecordingScreen();150 driver.takeScreenshot();151 driver.getPageSource();152 driver.stopRecordingScreen();153 driver.getPageSource();154 // browser.getLogs('logcat');155 driver.startRecordingScreen();156 driver.takeScreenshot();157 driver.getPageSource();158 driver.stopRecordingScreen();159 driver.getPageSource();160 // browser.getLogs('logcat');161 driver.startRecordingScreen();162 for(let i=0; i < 100; i++) {163 driver.pressKeyCode(69);164 }165 driver.takeScreenshot();166 driver.getPageSource();167 driver.stopRecordingScreen();168 driver.getPageSource();169 driver.takeScreenshot();170 driver.getPageSource();171 driver.getPageSource();172 driver.takeScreenshot();173 driver.getPageSource();174 driver.getPageSource();175 driver.takeScreenshot();176 driver.getPageSource();177 driver.getPageSource();178 driver.takeScreenshot();179 driver.getPageSource();180 driver.getPageSource();181 // browser.getLogs('logcat');182 });...

Full Screen

Full Screen

proxy_test.js

Source:proxy_test.js Github

copy

Full Screen

...83 setProxy(proxy.manual({84 http: proxyServer.host()85 })).86 build();87 driver.get(helloServer.url());88 assert(driver.getTitle()).equalTo('Proxy page');89 assert(driver.findElement({tagName: 'h3'}).getText()).90 equalTo('This is the proxy landing page');91 });92 // PhantomJS does not support bypassing the proxy for individual hosts.93 test.ignore(env.browsers(Browser.PHANTOMJS)).94 it('can bypass proxy for specific hosts', function() {95 var driver = env.builder().96 setProxy(proxy.manual({97 http: proxyServer.host(),98 bypass: helloServer.host()99 })).100 build();101 driver.get(helloServer.url());102 assert(driver.getTitle()).equalTo('Hello');103 assert(driver.findElement({tagName: 'h3'}).getText()).104 equalTo('Hello, world!');105 driver.get(goodbyeServer.url());106 assert(driver.getTitle()).equalTo('Proxy page');107 assert(driver.findElement({tagName: 'h3'}).getText()).108 equalTo('This is the proxy landing page');109 });110 // TODO: test ftp and https proxies.111 });112 // PhantomJS does not support PAC file proxy configuration.113 // Safari does not support proxies.114 test.ignore(env.browsers(Browser.PHANTOMJS, Browser.SAFARI)).115 describe('pac proxy settings', function() {116 test.it('can configure proxy through PAC file', function() {117 var driver = env.builder().118 setProxy(proxy.pac(proxyServer.url('/proxy.pac'))).119 build();120 driver.get(helloServer.url());121 assert(driver.getTitle()).equalTo('Proxy page');122 assert(driver.findElement({tagName: 'h3'}).getText()).123 equalTo('This is the proxy landing page');124 driver.get(goodbyeServer.url());125 assert(driver.getTitle()).equalTo('Goodbye');126 assert(driver.findElement({tagName: 'h3'}).getText()).127 equalTo('Goodbye, world!');128 });129 });130 // TODO: figure out how to test direct and system proxy settings.131 describe.skip('direct proxy settings', function() {});132 describe.skip('system proxy settings', function() {});...

Full Screen

Full Screen

page_loading_test.js

Source:page_loading_test.js Github

copy

Full Screen

...24 waitForTitleToBe = env.waitForTitleToBe;25 var driver;26 beforeEach(function() { driver = env.driver; });27 test.it('should wait for document to be loaded', function() {28 driver.get(Pages.simpleTestPage);29 assert(driver.getTitle()).equalTo('Hello WebDriver');30 });31 test.it('should follow redirects sent in the http response headers',32 function() {33 driver.get(Pages.redirectPage);34 assert(driver.getTitle()).equalTo('We Arrive Here');35 });36 test.ignore(browsers(Browser.ANDROID)).it('should follow meta redirects',37 function() {38 driver.get(Pages.metaRedirectPage);39 assert(driver.getTitle()).equalTo('We Arrive Here');40 });41 test.it('should be able to get a fragment on the current page', function() {42 driver.get(Pages.xhtmlTestPage);43 driver.get(Pages.xhtmlTestPage + '#text');44 driver.findElement(By.id('id1'));45 });46 test.ignore(browsers(Browser.ANDROID, Browser.IOS)).47 it('should wait for all frames to load in a frameset', function() {48 driver.get(Pages.framesetPage);49 driver.switchTo().frame(0);50 driver.findElement(By.css('span#pageNumber')).getText().then(function(txt) {51 assert(txt.trim()).equalTo('1');52 });53 driver.switchTo().defaultContent();54 driver.switchTo().frame(1);55 driver.findElement(By.css('span#pageNumber')).getText().then(function(txt) {56 assert(txt.trim()).equalTo('2');57 });58 });59 test.ignore(browsers(Browser.ANDROID, Browser.SAFARI)).60 it('should be able to navigate back in browser history', function() {61 driver.get(Pages.formPage);62 driver.findElement(By.id('imageButton')).click();63 waitForTitleToBe('We Arrive Here');64 driver.navigate().back();65 assert(driver.getTitle()).equalTo('We Leave From Here');66 });67 test.ignore(browsers(Browser.SAFARI)).68 it('should be able to navigate back in presence of iframes', function() {69 driver.get(Pages.xhtmlTestPage);70 driver.findElement(By.name('sameWindow')).click();71 waitForTitleToBe('This page has iframes');72 driver.navigate().back();73 assert(driver.getTitle()).equalTo('XHTML Test Page');74 });75 test.ignore(browsers(Browser.ANDROID, Browser.SAFARI)).76 it('should be able to navigate forwards in browser history', function() {77 driver.get(Pages.formPage);78 driver.findElement(By.id('imageButton')).click();79 waitForTitleToBe('We Arrive Here');80 driver.navigate().back();81 waitForTitleToBe('We Leave From Here');82 driver.navigate().forward();83 waitForTitleToBe('We Arrive Here');84 });85 test.it('should be able to refresh a page', function() {86 driver.get(Pages.xhtmlTestPage);87 driver.navigate().refresh();88 assert(driver.getTitle()).equalTo('XHTML Test Page');89 });90 test.it('should return title of page if set', function() {91 driver.get(Pages.xhtmlTestPage);92 assert(driver.getTitle()).equalTo('XHTML Test Page');93 driver.get(Pages.simpleTestPage);94 assert(driver.getTitle()).equalTo('Hello WebDriver');95 });96 // Only implemented in Firefox.97 test.ignore(browsers(98 Browser.ANDROID,99 Browser.CHROME,100 Browser.IE,101 Browser.IOS,102 Browser.OPERA,103 Browser.PHANTOMJS,104 Browser.SAFARI)).105 it('should timeout if page load timeout is set', function() {106 driver.call(function() {107 driver.manage().timeouts().pageLoadTimeout(1);108 driver.get(Pages.sleepingPage + '?time=3').109 then(function() {110 throw Error('Should have timed out on page load');111 }, function(e) {112 assert(e.code).equalTo(ErrorCode.SCRIPT_TIMEOUT);113 });114 }).then(resetPageLoad, function(err) {115 resetPageLoad().thenFinally(function() {116 throw err;117 });118 });119 function resetPageLoad() {120 return driver.manage().timeouts().pageLoadTimeout(-1);121 }122 });...

Full Screen

Full Screen

ProfilePage.js

Source:ProfilePage.js Github

copy

Full Screen

1let getDriver = require('../DriverInit/hooks');2const{By,until,Key} = require('selenium-webdriver');3module.exports.profilePageObjects = {4 VerifyElementIsDisplayed:5 async function(selector){6 let driver = await getDriver.webDriver.getDriverObject();7 var element = await driver.findElement(By.css(selector));8 var bool = until.elementIsDisabled(element);9 return bool;10 },11 ClickOnLogOutButton:12 async function() {13 let driver = await getDriver.webDriver.getDriverObject();14 var element = await driver.findElement(By.css('button[type="submit"]'));15 until.elementIsDisabled(element);16 await element.click();17 },18 ClickOnLoginLink:19 async function() {20 let driver = await getDriver.webDriver.getDriverObject();21 var element = await driver.findElement(By.css('a[class*="navbar-brand"]'));22 until.elementIsDisabled(element);23 await element.click();24 },25 ClickOnUserEmail:26 async function() {27 let driver = await getDriver.webDriver.getDriverObject();28 var element = await driver.findElement(By.css('a[title="Manage"]'));29 until.elementIsDisabled(element);30 await element.click();31 },32 EnterTelephoneNumber:33 async function(number) {34 let driver = await getDriver.webDriver.getDriverObject();35 var element = await driver.findElement(By.css('input[type="tel"]'));36 until.elementIsDisabled(element);37 await element.sendkeys(number,Key.ENTER);38 },39 ClickOnSaveButton:40 async function() {41 let driver = await getDriver.webDriver.getDriverObject();42 var element = await driver.findElement(By.css('button[id="update-profile-button"]'));43 until.elementIsDisabled(element);44 await element.click();45 },46 47 EnterNewEmail:48 async function(newEmail) {49 let driver = await getDriver.webDriver.getDriverObject();50 var element = await driver.findElement(By.css('input[type="email"]'));51 until.elementIsDisabled(element);52 await element.sendkeys(newEmail,Key.ENTER);53 },54 ClickOnChangeEmailButton:55 async function() {56 let driver = await getDriver.webDriver.getDriverObject();57 var element = await driver.findElement(By.css('button[id="change-email-button"]'));58 until.elementIsDisabled(element);59 await element.click();60 },61 ClickEmailButton:62 async function() {63 let driver = await getDriver.webDriver.getDriverObject();64 var element = await driver.findElement(By.css('li>a[id="email"]'));65 until.elementIsDisabled(element);66 await element.click();67 },68 ClickPersonalDataButton:69 async function() {70 let driver = await getDriver.webDriver.getDriverObject();71 var element = await driver.findElement(By.css('li>a[id="personal-data"]'));72 until.elementIsDisabled(element);73 await element.click();74 },75 ClickDownloadButton:76 async function() {77 let driver = await getDriver.webDriver.getDriverObject();78 var element = await driver.findElement(By.css('form>button[class="btn btn-primary"]'));79 until.elementIsDisabled(element);80 await element.click();81 },82 VerifyManageEmailText:83 async function(manageEmailMessage) {84 let driver = await getDriver.webDriver.getDriverObject();85 var element = await driver.findElement(By.css('div[role="alert"]'));86 var bool = until.elementTextContains(element,manageEmailMessage);87 return bool;88 },89 VerifyWarningMessage:90 async function(warningMessage) {91 let driver = await getDriver.webDriver.getDriverObject();92 var element = await driver.findElement(By.css('p>strong'));93 var bool = until.elementTextContains(element,warningMessage);94 return bool;95 },96 VerifyPageTitel:97 async function(pageTitel){98 let driver = await getDriver.webDriver.getDriverObject();99 var titel = await driver.getTitle();100 if (titel == pageTitel) 101 {102 return true;103 }104 return false;105 },...

Full Screen

Full Screen

app.js

Source:app.js Github

copy

Full Screen

1import { APPLICATION_PORT, HOST_APPLICATION_PATH, MAX_PLAYERS } from './util/constants';2import Socket from 'socket.io';3import express from 'express';4import { GameStorage } from './storage/gameStorage';5import cors from 'cors';6const path = require('path');7const app = express();8app.use(cors());9const gameDriver = new GameStorage(MAX_PLAYERS);10app.use(cors())11app.use(express.static(path.join(__dirname, '/templates/build')))12app.get('/', (req,res) =>{13 res.sendFile(path.join(__dirname+'/templates/build/index.html'));14});15app.get('/start', (req, res) => {16 const gameSetupData = gameDriver.initializeGameRoom();17 res.status(200).json({18 gameCode: gameSetupData.getRoomCode(),19 details: ""20 });21});22app.get('/login/:username/:gameCode', (req, res) => {23 const { username, gameCode } = req.params;24 if (gameDriver.gameRoomExists(gameCode)){25 if (gameDriver.spaceAvailable(gameCode)){26 if(gameDriver.usernameAvailable(gameCode, username)) {27 return res.status(200).json({status: "success"});28 }29 return res.status(300).json({status: "Username used."}); 30 }31 return res.status(300).json({status: "Room is full."});32 }33 return res.status(404).json({status: "Room not found."});34});35app.get('/startphase/:gameCode', (req, res) => {36 const { gameCode } = req.params;37 gameDriver.getRoom(data.gameCode).startPhase();38 const phaseInfo = gameDriver.getRoom(data.gameCode).getPhaseInfo();39 return res.status(200).json({ phaseInfo: phaseInfo });40});41const server = app.listen(APPLICATION_PORT, () => console.log(`In the Attic Server listening on port ${APPLICATION_PORT}`));42const io = new Socket(server)43io.on('connection', (client) => {44 client.on('init game', data => {45 gameDriver.getRoom(data.gameCode).startGame();46 io.sockets.emit('game-status', {status: true});47 });48 client.on('add host', data => {49 gameDriver.getRoom(data.gameCode).setHost(client.id);50 client.join(data.gameCode);51 });52 // Needs to be updated to allow to players to reconnect to game53 // and things about active game connects needs to be talked about54 client.on('join game', data => {55 client.join(data.gameCode);56 const player = gameDriver.initPlayerInRoom(data.gameCode, data.username, client.id);57 client.emit('player joined game', {isVIP: player.isVIP});58 const host = gameDriver.getRoom(data.gameCode).getHost();59 io.sockets.to(host).emit('player joined game', {player});60 });61 client.on('phase over', data => {62 gameDriver.getRoom(data.gameCode).stopAcceptingAnswers();63 gameDriver.getRoom(data.gameCode).resolvePhase();64 io.sockets.to(data.gameCode).emit('phase over', "new phase coming soon");65 });66 client.on('start timer', data => {67 gameDriver.getRoom(data.gameCode).startAcceptingAnswers();68 const players = gameDriver.getPlayerList();69 Object.keys(players).forEach(playerKey => {70 const phaseInfo = gameDriver.getRoom(data.gameCode).getPhaseInfo(playerKey);71 io.sockets.to(playerKey).emit('start phase', { phaseInfo });72 });73 });74 client.on('response submission', data => {75 console.log(data);76 try {77 gameDriver.getRoom(data.gameCode).acceptAnswer(client.id, data.answer);78 client.emit('submission success', { isTrue: true });79 const host = gameDriver.getRoom(data.gameCode).getHost();80 const player = gameDriver.getPlayerList()[client.id];81 io.sockets.to(host).emit('submission success', {isTrue: true, player});82 } catch (error) {83 client.emit('submission success', { isTrue: false, error: "Something went wrong, submit again" });84 }85 })86 client.on('disconnect', () => {87 console.log("player has left the game");88 });...

Full Screen

Full Screen

LoginPage.js

Source:LoginPage.js Github

copy

Full Screen

1let getDriver = require('../DriverInit/hooks');2const{By,until,Key} = require('selenium-webdriver');3module.exports.loginPageObjects = {4 VerifyElementIsDisplayed:5 async function(selector){6 let driver = await getDriver.webDriver.getDriverObject();7 var element = await driver.findElement(By.css(selector));8 var bool = until.elementIsDisabled(element);9 return bool;10 },11 EnterUserEmail:12 async function(email) {13 let driver = await getDriver.webDriver.getDriverObject();14 var element = await driver.findElement(By.css('input[type="email"]'));15 until.elementIsDisabled(element);16 await element.sendKeys(email);17 },18 EnterUserPassword:19 async function(password) {20 let driver = await getDriver.webDriver.getDriverObject();21 var element = await driver.findElement(By.css('input[id="Input_Password"]'));22 until.elementIsDisabled(element);23 await element.sendKeys(password);24 },25 ClickOnLoginButton:26 async function() {27 let driver = await getDriver.webDriver.getDriverObject();28 var element = await driver.findElement(By.css('div>button[type="submit"]'));29 until.elementIsDisabled(element);30 await element.click();31 },32 SelectRememberMeButton:33 async function() {34 let driver = await getDriver.webDriver.getDriverObject();35 var element = await driver.findElement(By.css('input[type="checkbox"]'));36 until.elementIsDisabled(element);37 await element.click();38 },39 40 ClickOnForgotYourPasswordLink:41 async function() {42 let driver = await getDriver.webDriver.getDriverObject();43 var element = await driver.findElement(By.css('a[id="forgot-password"]'));44 until.elementIsDisabled(element);45 await element.click();46 },47 48 ClickOnRegisterAsANewUserLink:49 async function() {50 let driver = await getDriver.webDriver.getDriverObject();51 var element = await driver.findElement(By.css('a[href*="/Register?"]'));52 until.elementIsDisabled(element);53 await element.click();54 },55 56 ClickOnResendEmailConfirmationLink:57 async function() {58 let driver = await getDriver.webDriver.getDriverObject();59 var element = await driver.findElement(By.css('p>button[type="submit"]'));60 until.elementIsDisabled(element);61 await element.click();62 },63 VerifyPageTitel:64 async function(pageTitel){65 let driver = await getDriver.webDriver.getDriverObject();66 var titel = await driver.getTitle();67 if (titel == pageTitel) 68 {69 return true;70 }71 return false;72 },...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1driver.executeScript("mobile: launchApp", {"bundleId": "com.apple.mobilesafari"});2driver.executeScript("mobile: activateApp", {"bundleId": "com.apple.mobilesafari"});3driver.executeScript("mobile: terminateApp", {"bundleId": "com.apple.mobilesafari"});4driver.executeScript("mobile: isAppInstalled", {"bundleId": "com.apple.mobilesafari"});5driver.executeScript("mobile: removeApp", {"bundleId": "com.apple.mobilesafari"});6driver.executeScript("mobile: backgroundApp", {"seconds": 5});7driver.executeScript("mobile: reset", {});8driver.executeScript("mobile: isLocked", {});9driver.executeScript("mobile: lock", {});10driver.executeScript("mobile: unlock", {});11driver.executeScript("mobile: shake", {});12driver.executeScript("mobile: deviceInfo", {});13driver.executeScript("mobile: log", {"log": "Hello Appium World"});14driver.executeScript("mobile: startLogsBroadcast", {});

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Appium automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful