-
Notifications
You must be signed in to change notification settings - Fork 2.3k
chore(types): add in types inherited from selenium-webdriver #3288
Conversation
cnishina
commented
Jun 20, 2016
- add element.ts to the gulp task for 'gulp types'
- clang clean up
- separate out selenium-webdriver types and extend them in protractor
- remove webdriver types for index.d.ts file
Note: removing |
The travis failures look legitimate. |
|
||
var removeTypes = function(line, webdriverType) { | ||
var tempLine = line.trim(); | ||
if (tempLine.startsWith('/**') || tempLine.startsWith('*')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They would usually start with *
for multiline comments. (That didn't show up well, it's a space in front of the *)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be fine because I am trimming the line prior to testing if it starts with a *
. This should capture the comments in the index.d.ts file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right you are.
It looks like I went a little overboard trying to clean up the ptor file. |
0a26e70
to
3b49349
Compare
@@ -14,6 +14,40 @@ let WEB_ELEMENT_FUNCTIONS = [ | |||
'serialize', 'takeScreenshot' | |||
]; | |||
|
|||
// Explicitly extend selenium webdriver for webdriver.WebElement. | |||
export class WebdriverWebElement { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make more sense for these to be interfaces instead of classes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing this to be an interface.
8295523
to
d7e65f4
Compare
- add element.ts to the gulp task for 'gulp types' - clang clean up - separate out selenium-webdriver types and extend them in protractor - remove webdriver types for index.d.ts file