Question: I'm using ProtractorJS (and Appium) to test a website on browsers and devices. One of the tests is to type some text in the search box and then hit ENTER. Here is the snippet from the page object.

```
page.searchInput.sendKeys("Text");
page.searchInput.sendKeys(protractor.Key.ENTER);

```

The above two lines work fine on any browser and Android devices. However, the same test fails on iOS because the ENTER key is not sent. In the iOS keyboard the key I have to press is the "Search" one.

The test must trigger the search using the keyboard.

Any ideas on how to send the ENTER key on iOS?

Answer: 
I ran into a similar issue this morning but in an str series! This worked for me and with your sample data as well:

`pd.isna(ser)`
Surprisingly I got following output after execution the code you given:
[![enter image description here](https://i.stack.imgur.com/YJDRv.png)](https://i.stack.imgur.com/YJDRv.png)

### Alternate way is: count those values which you are able to count.

calculate length of series object and subtraction will give you the count for null values. As follows:\*\*

[![enter image description here](https://i.stack.imgur.com/CXEiZ.png)](https://i.stack.imgur.com/CXEiZ.png)

```
len(ser)-(ser[ser.isnull()==False]).count()

```