Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{Draft} Refactor: Test cases #4

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

vaibhavsingh97
Copy link
Member

No description provided.

@vaibhavsingh97 vaibhavsingh97 marked this pull request as draft May 10, 2021 17:12
test/apimethod-test.js Outdated Show resolved Hide resolved
@vaibhavsingh97 vaibhavsingh97 marked this pull request as ready for review May 18, 2021 10:28
Comment on lines +41 to +59
// navbarHeader.source((res) => console.log(res));
// const result = await navbarHeader.api.elementIdElements(
// '@versionDropdown',
// 'css selector',
// 'a',
// (res) => console.log(res)
// );
// navbarHeader.assert.equal(result.value.length, 2, 'There are two option elements in the drop down');
// },

// 'check if elementIdElement (single) works as expected on page objects': async function (client) {
// const navbarHeader = this.homepage.section.navbarHeader;

// const result = await navbarHeader.api.elementIdElement('@versionDropdownOption', 'css selector', 'a');
// client.assert.ok(
// client.WEBDRIVER_ELEMENT_ID in result.value,
// `The Webdriver Element Id ${client.WEBDRIVER_ELEMENT_ID} is found in the result`
// );
// },
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@beatfactor I need help here,
const result = await navbarHeader.api.elementIdElement('@versionDropdownOption', 'css selector', 'a');
I am getting empty value whenever I run this case

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants