RESOLVED FIXED 180244
WebDriver: implement element property command
https://bugs.webkit.org/show_bug.cgi?id=180244
Summary WebDriver: implement element property command
Carlos Garcia Campos
Reported 2017-12-01 06:02:18 PST
Attachments
Patch (9.08 KB, patch)
2017-12-01 06:05 PST, Carlos Garcia Campos
bburg: review+
Carlos Garcia Campos
Comment 1 2017-12-01 06:05:44 PST
EWS Watchlist
Comment 2 2017-12-01 06:08:24 PST
Attachment 328089 [details] did not pass style-queue: ERROR: Source/WebDriver/WebDriverService.h:87: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebDriver/WebDriverService.h:88: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebDriver/Session.h:89: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebDriver/Session.h:90: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebDriver/WebDriverService.cpp:1137: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebDriver/Session.cpp:1287: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 6 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Blaze Burg
Comment 3 2017-12-01 09:29:52 PST
Comment on attachment 328089 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=328089&action=review r=me > Source/WebDriver/Session.cpp:1321 > + return; It's not clear to me what will happen if element.`property` is undefined. Will it return an error or not? Just looking at the W3C test names, I can't easily tell that this case is covered.
Carlos Garcia Campos
Comment 4 2017-12-02 07:07:17 PST
(In reply to Brian Burg from comment #3) > Comment on attachment 328089 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=328089&action=review > > r=me > > > Source/WebDriver/Session.cpp:1321 > > + return; > > It's not clear to me what will happen if element.`property` is undefined. > Will it return an error or not? Just looking at the W3C test names, I can't > easily tell that this case is covered. Good point, I think it will return a JS error, because the code will raise an exception, I guess. We should handle that case and return null.
Carlos Garcia Campos
Comment 5 2017-12-04 03:27:53 PST
(In reply to Carlos Garcia Campos from comment #4) > (In reply to Brian Burg from comment #3) > > Comment on attachment 328089 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=328089&action=review > > > > r=me > > > > > Source/WebDriver/Session.cpp:1321 > > > + return; > > > > It's not clear to me what will happen if element.`property` is undefined. > > Will it return an error or not? Just looking at the W3C test names, I can't > > easily tell that this case is covered. > > Good point, I think it will return a JS error, because the code will raise > an exception, I guess. We should handle that case and return null. I've checked this and it's tested by test_element_non_existent. We need to handle it, but in a more general way, so I'll fix this and other similar cases in a follow up patch.
Carlos Garcia Campos
Comment 6 2017-12-04 03:29:37 PST
Radar WebKit Bug Importer
Comment 7 2017-12-04 03:30:32 PST
Note You need to log in before you can comment on or make changes to this bug.