mirror of
https://github.com/appium/appium.git
synced 2026-01-28 13:18:55 -06:00
Add * XPath unit test
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
*.swp
|
||||
.DS_Store
|
||||
npm*.log
|
||||
node_modules
|
||||
|
||||
@@ -37,6 +37,10 @@ describe("XPath lookups", function() {
|
||||
attr: 'label', constraint: 'hi', substr: true}
|
||||
, "//button[contains(@label, what's up dog)]": {
|
||||
attr: 'label', constraint: "what's up dog", substr: true}
|
||||
, "//*[contains(@text, 'agree')]": {
|
||||
attr: 'text', constraint: 'agree', substr: true}
|
||||
, "//*[@text='agree']": {
|
||||
attr: 'text', constraint: 'agree', substr: false}
|
||||
};
|
||||
var notOks = [
|
||||
, "//button123"
|
||||
|
||||
Reference in New Issue
Block a user