How to use the @flood/element.By.visibleText 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 / 19-apf-config-modeler / apf-config-modeler / apf-config1.ts View on Github external
step('APF Config Modeler Demo App: Home', async browser => {
    await browser.visit('https://sapui5.hana.ondemand.com/test-resources/sap/apf/newDemokit/modeler/index.html')

    const pageTextVerify = By.visibleText('APF Demo Kit Application')
    await browser.wait(Until.elementIsVisible(pageTextVerify))

    await browser.takeScreenshot()
  })
github flood-io / element / examples / sap-fiori / 06-quickstart / quickstart1.ts View on Github external
step('Quickstart Demo App: Click Go', async browser => {
    
    //Click on the text link item called 'Go!'
    let obj_btn_Go = By.xpath("//bdi[contains(text(),'Go!')]")
    await browser.wait(Until.elementIsVisible(obj_btn_Go))
    let element1 = await browser.findElement(obj_btn_Go)
    await element1.click() 

    //Verify that we are on the correct page by checking that 'This is UI5!' text is shown on the page
    const pageTextVerify = By.visibleText("This is UI5!")
    await browser.wait(Until.elementIsVisible(pageTextVerify))  

    //Take a screenshot
    await browser.takeScreenshot()
  })
github flood-io / element / examples / sap-fiori / 03-sales-orders / salesorders1.ts View on Github external
step('Sales Orders Demo App: Select Supplier', async browser => {
    
    let obj_itm_Supplier = By.xpath("//span[contains(@id, 'Supplier-multiinput-vhi')]")
    await browser.wait(Until.elementIsVisible(obj_itm_Supplier))
    let element1 = await browser.findElement(obj_itm_Supplier)
    await element1.click() 

    const pageTextVerify = By.visibleText("Select Supplier")
    await browser.wait(Until.elementIsVisible(pageTextVerify))  

    await browser.takeScreenshot()
  })
github flood-io / element / examples / sap-fiori / 06-quickstart / quickstart1.ts View on Github external
step('Quickstart Demo App: Click Switch to Yes', async browser => {
    
    //Click on the Switch button selector to the 'Yes' position
    let obj_btn_Yes = By.xpath("//span[contains(text(),'no')]")
    await browser.wait(Until.elementIsVisible(obj_btn_Yes))
    let element1 = await browser.findElement(obj_btn_Yes)
    await element1.click() 

    //Verify that we are on the correct page by checking that 'Ok, let's get you started!' text is shown on the page
    const pageTextVerify = By.visibleText("Ok, let's get you started!")
    await browser.wait(Until.elementIsVisible(pageTextVerify))

    //Take a screenshot
    await browser.takeScreenshot()
  })
github flood-io / element / examples / sap-fiori / 02-browse-orders / browse-orders1.ts View on Github external
step('Browse Orders Demo App: Choose Order', async browser => {
    
    let obj_itm_Order = By.xpath("//span[contains(text(),'Order 7991')]")
    await browser.wait(Until.elementIsVisible(obj_itm_Order))
    let element1 = await browser.findElement(obj_itm_Order)
    await element1.click() 

    const pageTextVerify = By.visibleText("Shipping Address")
    await browser.wait(Until.elementIsVisible(pageTextVerify))  

    await browser.takeScreenshot()
  })
github flood-io / element / examples / sap-fiori / 07-bulletin-board / bb1.ts View on Github external
step('Bulletin Board Demo App: Home', async browser => {
    
    //Navigate to the Bulleting Board Demo Application
    await browser.visit('https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/tutorial/testing/14/webapp/test/mockServer.html')

    //Verify that we are on the correct page by checking that 'Bulleting Board' text is shown on the page
    const pageTextVerify = By.visibleText('Bulletin Board')
    await browser.wait(Until.elementIsVisible(pageTextVerify))

    //Take a screenshot
    await browser.takeScreenshot()
  })
github flood-io / element / packages / element / docs / examples / scenario_1_wordpress.ts View on Github external
step('The Flood Store: Place Order', async browser => {
		let btnPlaceOrder = By.xpath('//button[contains(@name, "woocommerce_checkout_place_order")]')
		await browser.wait(Until.elementIsVisible(btnPlaceOrder))
		let element = await browser.findElement(btnPlaceOrder)
		await element.focus()
		await element.click()

		//let pageTextVerify = By.visibleText('Thank you. Your order has been received.')
		let pageTextVerify = By.visibleText('Order received')
		await browser.wait(Until.elementIsVisible(pageTextVerify))

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

    	//Validate text
    	let dashValidation = By.visibleText('Trial Center')
        await browser.wait(Until.elementIsVisible(dashValidation))    
        
        //click Create Sales Orders
        let btnCreateSalesOrders = await browser.findElement(By.xpath("//div[contains(@aria-label, 'Create Sales Orders')]"))
        await btnCreateSalesOrders.click()    

    	//Validate text
    	let salesordersValidation = By.visibleText('New Sales Order')
        await browser.wait(Until.elementIsVisible(salesordersValidation))              
        
        await browser.takeScreenshot()

    })
github flood-io / element / examples / sap-fiori / 13-basic-template / basictemplate1.ts View on Github external
step('Sales Orders Demo App: Home', async browser => {

    //Navigate to the Basic Template Demo Application
    await browser.visit('https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/basicTemplate/webapp/index.html')

    //Verify that we are on the correct page by checking that 'Basic Template' text is shown on the page
    const pageTextVerify = By.visibleText('Basic Template')
    await browser.wait(Until.elementIsVisible(pageTextVerify))

    //Take a screenshot
    await browser.takeScreenshot()
  })
github flood-io / element / examples / sap-fiori / 05-employee-directory / empdir1.ts View on Github external
step('Employee Directory Demo App: Flip to Resume', async browser => {
    
    //Click on the text link item called 'Flip to Resume'
    let obj_itm_FlipToResume = By.xpath("//a[contains(text(),'Flip to Resume')]")
    await browser.wait(Until.elementIsVisible(obj_itm_FlipToResume))
    let element1 = await browser.findElement(obj_itm_FlipToResume)
    await element1.click() 

    //Verify that we are on the correct page by checking that 'Information of Robert King' text is shown on the page
    const pageTextVerify = By.visibleText("Information of Robert King")
    await browser.wait(Until.elementIsVisible(pageTextVerify))

    //Take a screenshot
    await browser.takeScreenshot()
  })