How to use the @flood/element.Key.TAB function in @flood/element

To help you get started, we’ve selected a few @flood/element examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github flood-io / element / examples / sap-fiori / SAP4Hana_createSalesOrder.ts View on Github external
step('Sales Order Entry - Enter Details', async browser => {

        //Sold-To Party (will pre-fill other fields after TAB press)
        await browser.type(By.xpath("//input[contains(@id, 'Identification::SoldToParty')]"), "17100001")
        await browser.press(Key.TAB)

        //Sales Organization
        //await browser.type(By.xpath("//input[contains(@id, 'Identification::SalesOrganization')]"), "1710")

        //Distribution Channel
        //await browser.type(By.xpath("//input[contains(@id, 'Identification::DistributionChannel')]"), "10")

        //Division
        //await browser.type(By.xpath("//input[contains(@id, 'Identification::OrganizationDivision')]"), "00")        
        
        await browser.takeScreenshot()

    })
github flood-io / element / examples / sap-fiori / SAP4Hana_createSalesOrder.ts View on Github external
step('Sales Order Entry - Add Item', async browser => {

        //Material
        await browser.type(By.xpath("//input[contains(@id, 'Default::Material')]"), "TG11")
        await browser.press(Key.TAB)

        //Requested Quantity
        await browser.type(By.xpath("//input[contains(@id, 'Default::RequestedQuantity')]"), "1")
        await browser.press(Key.TAB)

        //Requested Delivery Date
        //await browser.type(By.xpath("//input[contains(@id, 'Default::RequestedDeliveryDate')]"), "01/16/2019")
        //await browser.press(Key.TAB)

        //click Add Item
        let btnAddItem = await browser.findElement(By.xpath("//span[contains(@id, 'BtnAddToItems')]"))
        await btnAddItem.click()    
        
        await browser.takeScreenshot()

    })