I want to use global variables declared in wdio.conf.js file into my test files. in below test I am using UserName, Password, PageTile. I want to use them via wdio.conf.js file globaly??
describe('My Store|Automationpractice.com', () => {
it('should go to url and login with valid credentials', async () => {
await LoginPage.open();
await expect(browser).toHaveTitle('My Store');
await LoginPage.signInbtn.click();
await expect(browser).toHaveTitle('Login - My Store');
await LoginPage.login('UserName','Password');
await expect(browser).toHaveTitle('My account - My Store');
await browser.pause(5000);
});