it-ebooks - Appium 官方文档
Here you can read online it-ebooks - Appium 官方文档 full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2021, publisher: iBooker it-ebooks, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:
Romance novel
Science fiction
Adventure
Detective
Science
History
Home and family
Prose
Art
Politics
Computer
Non-fiction
Religion
Business
Children
Humor
Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.
Appium 官方文档: summary, description and annotation
We offer to read an annotation, description, summary or preface (depends on what the author of the book "Appium 官方文档" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.
Appium 官方文档 — read online for free the complete book (whole text) full work
Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Appium 官方文档" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.
Font size:
Interval:
Bookmark:
// JavaWebElement source = (MobileElement) driver.findElementsByAccessibilityId("SomeAccessibilityID");WebElement target = (MobileElement) driver.findElementsByAccessibilityId("SomeOtherAccessibilityID");Point source = dragMe.getCenter();Point target = driver.findElementByAccessibilityId("dropzone").getCenter();PointerInput finger = new PointerInput(PointerInput.Kind.TOUCH, "finger");Sequence dragNDrop = new Sequence(finger, 1);dragNDrop.addAction(finger.createPointerMove(Duration.ofMillis(0), PointerInput.Origin.viewport(), source.x, source.y));dragNDrop.addAction(finger.createPointerDown(PointerInput.MouseButton.LEFT.asArg()));dragNDrop.addAction(finger.createPointerMove(Duration.ofMillis(700), PointerInput.Origin.viewport(),target.x, target.y));dragNDrop.addAction(finger.createPointerUp(PointerInput.MouseButton.LEFT.asArg()));driver.perform(Arrays.asList(dragNDrop));
# Pythonelement = driver.find_element_by_accessibility_id("elId")actions = ActionChains(driver)actions.move_to_element(element)actions.click(hidden_submenu)actions.perform()
// Javascript// webdriver.io example// Example: expressing a 1-second pinch-and-zoom// with a 500ms wait after the fingers first touch:driver.performActions([{ "type": "pointer", "id": "finger1", "parameters": {"pointerType": "touch"}, "actions": [ {"type": "pointerMove", "duration": 0, "x": 100, "y": 100}, {"type": "pointerDown", "button": 0}, {"type": "pause", "duration": 500}, {"type": "pointerMove", "duration": 1000, "origin": "pointer", "x": -50, "y": 0}, {"type": "pointerUp", "button": 0} ]}, { "type": "pointer", "id": "finger2", "parameters": {"pointerType": "touch"}, "actions": [ {"type": "pointerMove", "duration": 0, "x": 100, "y": 100}, {"type": "pointerDown", "button": 0}, {"type": "pause", "duration": 500}, {"type": "pointerMove", "duration": 1000, "origin": "pointer", "x": 50, "y": 0}, {"type": "pointerUp", "button": 0} ]}]);// release an actiondriver.releaseActions();// wd example// Performs a 'pinch-and-zoom'var actions = new wd.W3CActions(driver);var touchInput = actions.addTouchInput();touchInput.pointerMove({duration: 0, x: 100, y: 100});touchInput.pointerDown({button: 0});touchInput.pause({duration: 500});touchInput.pointerMove({duration: 1000, origin: 'pointer', x: -50, y: 100});touchInput.pointerUp({button: 0});var secondTouchInput = actions.addTouchInput();secondTouchInput.pointerMove({duration: 0, x: 200, y: 200});secondTouchInput.pointerDown({button: 0});secondTouchInput.pause({duration: 300});secondTouchInput.pointerMove({duration: 1000, origin: 'pointer', x: 50, y: 100});secondTouchInput.pointerUp({button: 0});await actions.perform();// Releases any previously run actions (e.g.: if a key is 'down' because of /actions, releases it using key up)await driver.releaseW3CActions();
# Ruby# ruby_lib example# Send keys to an element# Build Single action chainaction_builder = actionkeyboard = action_builder.key_inputsel = find_element(id: "some_id")action.click(el).pause(keyboard).pause(keyboard).pause(keyboard).send_keys('keys').perform# Build multiple action chains# Example: expressing a 1-second pinch-and-zoom# with a 500ms wait after the fingers first touch:f1 = action.add_pointer_input(:touch, 'finger1')f1.create_pointer_move(duration: 1, x: 200, y: 500, origin: ::Selenium::WebDriver::Interactions::PointerMove::VIEWPORT)f1.create_pointer_down(:left)f1.create_pause(0.5)f1.create_pointer_move(duration: 1, x: 200, y: 200, origin: ::Selenium::WebDriver::Interactions::PointerMove::VIEWPORT)f1.create_pointer_up(:left)f2 = action.add_pointer_input(:touch, 'finger2')f2.create_pointer_move(duration: 1, x: 200, y: 500, origin: ::Selenium::WebDriver::Interactions::PointerMove::VIEWPORT)f2.create_pointer_down(:left)f2.create_pause(0.5)f2.create_pointer_move(duration: 1, x: 200, y: 800, origin: ::Selenium::Web@Driver::Interactions::PointerMove::VIEWPORT)f2.create_pointer_up(:left)perform_actions [f1, f2]# ruby_lib_core example# Send keys to an element# Build Single action chainaction_builder = @driver.actionkeyboard = action_builder.key_inputsel = @driver.find_element(id: "some_id")@driver.action.click(el).pause(keyboard).pause(keyboard).pause(keyboard).send_keys('keys').perform# Build multiple action chains# Example: expressing a 1-second pinch-and-zoom# with a 500ms wait after the fingers first touch:f1 = @driver.action.add_pointer_input(:touch, 'finger1')f1.create_pointer_move(duration: 1, x: 200, y: 500, origin: ::Selenium::WebDriver::Interactions::PointerMove::VIEWPORT)f1.create_pointer_down(:left)f1.create_pause(0.5)f1.create_pointer_move(duration: 1, x: 200, y: 200, origin: ::Selenium::WebDriver::Interactions::PointerMove::VIEWPORT)f1.create_pointer_up(:left)f2 = @driver.action.add_pointer_input(:touch, 'finger2')f2.create_pointer_move(duration: 1, x: 200, y: 500, origin: ::Selenium::WebDriver::Interactions::PointerMove::VIEWPORT)f2.create_pointer_down(:left)f2.create_pause(0.5)f2.create_pointer_move(duration: 1, x: 200, y: 800, origin: ::Selenium::Web@Driver::Interactions::PointerMove::VIEWPORT)f2.create_pointer_up(:left)@driver.perform_actions [f1, f2]
# PHP// TODO
// C#var inputDevice = new PointerInputDevice(PointerKind.Touch);var actionSequence = new ActionSequence(inputDevice, 0);actionSequence.AddAction(inputDevice.CreatePointerMove(element));actionSequence.AddAction(inputDevice.CreatePointerDown(PointerButton.TouchContact));actionSequence.AddAction(inputDevice.CreatePause(TimeSpan.FromSeconds(1)));actionSequence.AddAction(inputDevice.CreatePointerUp(PointerButton.TouchContact));driver.PerformActions(new List {actionSequence});
- input source: ID
- action: keyDown keyUp pointerMovepointerDownpointerUp pause
The Actions APItick ticktick0tick1tick
Driver | Appium | Driver | ||
---|---|---|---|---|
iOS | 9.3+ | 1.6.0+ | All | |
None | None | None | ||
Android | ?+ | 1.9.0+ | All | |
?+ | 1.6.0+ | All | ||
None | None | None | ||
Mac | ?+ | 1.6.4+ | All | |
Windows | 10+ | 1.6.0+ | All |
Java | All | seleniumhq.github.io |
Python | All | selenium-python.readthedocs.io |
Javascript (WebdriverIO) |
Font size:
Interval:
Bookmark:
Similar books «Appium 官方文档»
Look at similar books to Appium 官方文档. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.
Discussion, reviews of the book Appium 官方文档 and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.