Skip to content

Commit 71e629f

Browse files
authored
update small changes (#439)
1 parent cec023c commit 71e629f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/ios_xcuitest.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- [Migrating your iOS tests from UIAutomation](https://github.com/appium/appium/blob/v1.6.2/docs/en/advanced-concepts/migrating-to-xcuitest.md)
77

88
## find elements
9-
- supported elements by find_element is:
9+
- supported elements by find_element are:
1010
- [appium-xcuitest-driver](https://github.com/appium/appium-xcuitest-driver/blob/master/lib/commands/find.js#L17)
1111
- [WebDriverAgent](https://github.com/facebook/WebDriverAgent/blob/8346199212bffceab24192e81bc0118d65132466/WebDriverAgentLib/Commands/FBFindElementCommands.m#L111)
1212
- Mapping
@@ -15,7 +15,7 @@
1515
### with except for XPath
1616
#### examples
1717
- [button_class](https://github.com/appium/ruby_lib/blob/master/lib/appium_lib/ios/element/button.rb#L8), [static_text_class](https://github.com/appium/ruby_lib/blob/master/lib/appium_lib/ios/element/text.rb#L8), [text_field_class](https://github.com/appium/ruby_lib/blob/master/lib/appium_lib/ios/element/textfield.rb#L10) and [secure_text_field_class](https://github.com/appium/ruby_lib/blob/master/lib/appium_lib/ios/element/textfield.rb#L15) provide class name.
18-
- If `automationName` is `Appium`, then they provide `UIAxxxx`
18+
- If `automationName` is `Appium` or `nil`, then they provide `UIAxxxx`
1919
- If `automationName` is `XCUITest`, then they provide `XCUIElementTypexxx`
2020

2121
```ruby
@@ -33,7 +33,7 @@ find_element(:accessibility_id, element) # Return a element which has accessibil
3333
### with XPath
3434
- It is better to avoid XPath strategy.
3535
- https://github.com/appium/appium/blob/v1.6.2/docs/en/advanced-concepts/migrating-to-xcuitest.md#xpath-locator-strategy
36-
- > Try not to use XPath locators unless there is absolutely no other alternatives. In general, xpath locators might be times slower, than other types of locators like accessibility id, class name and predicate (up to 100 times slower in some special cases). They are so slow, because xpath location is not natively supported by Apple's XCTest framework.
36+
- > Try not to use XPath locators unless there are absolutely no other alternatives. In general, XPath locators might be times slower, than other types of locators like accessibility id, class name and predicate (up to 100 times slower in some special cases). They are so slow because XPath location is not natively supported by Apple's XCTest framework.
3737
- Improved performance a bit
3838
- https://github.com/appium/appium/issues/6842
3939
- https://github.com/facebook/WebDriverAgent/issues/306
@@ -50,4 +50,4 @@ text(value) # Return a XCUIElementTypeStaticText element which has `value` text.
5050
```
5151

5252
## Other actions
53-
Basically, other actions such as `type` is compatible with `automationName = Appium`.
53+
Basically, other actions such as `type` are compatible with `automationName = Appium`.

0 commit comments

Comments
 (0)