Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get location

const assert = require('assert')

describe('v5.webdriver.io', () => {

    it('should demonstrate the getLocation function', async () => {
       await browser.url('https://v5.webdriver.io')
       
       const logo = await $('#search_input_react')
       const location = await logo.getLocation();
       console.log(location);

       const xLocation = await logo.getLocation('x')
       console.log("Xlocation" +xLocation);
    })
})
 
PREVIOUS NEXT
Tagged: #location
ADD COMMENT
Topic
Name
9+9 =