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

Parity with testium-driver-sync #4

Merged
merged 25 commits into from
Oct 29, 2015
Merged

Parity with testium-driver-sync #4

merged 25 commits into from
Oct 29, 2015

Conversation

jkrems
Copy link
Member

@jkrems jkrems commented Oct 26, 2015

  • browser.getElement: Throws a clean exception if the element doesn't exist
  • browser.getElementOrNull: Same behavior as -sync's getElement
  • Added setCookieValue and getCookieValue for parity with -sync. Those methods aren't part of -sync but its setCookie defaults to path: '/' which conflicts with how wd works.

Issue outlining where testium-driver-wd's API differs from testium-driver-sync: testiumjs/testium-driver-sync#8

@jkrems jkrems changed the title Dialog & Window tests Parity with testium-driver-sync Oct 26, 2015
}

function getterToPropName(propName) {
return propName.replace(/^get([A-Z])/, secondToLowerCase);
Copy link

Choose a reason for hiding this comment

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

Should there be a + or * in there? e.g. /^get([A-Z]+)/

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure if getABC should become abc, aBC, or ABC. I'd consider that "undefined behavior". I don't think that's an actual case this function handles. E.g. all properties it's concerned with are the ones provided by webdriver, e.g. getText -> text, getPageTitle -> pageTitle, etc.

@ghost
Copy link

ghost commented Oct 29, 2015

Nice work! :shipit:

jkrems added a commit that referenced this pull request Oct 29, 2015
Parity with testium-driver-sync
@jkrems jkrems merged commit 2769c15 into master Oct 29, 2015
@jkrems jkrems deleted the jk-the-rest branch October 29, 2015 19:25
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.

1 participant