# Unable to click on bluetooth button on iOS controller center

**URL:** <https://discuss.appium.io/t/unable-to-click-on-bluetooth-button-on-ios-controller-center/43036>\
**Category:** Issues/Bugs\
**Created:** [July 16, 2024, 3:30pm UTC](https://discuss.appium.io/t/unable-to-click-on-bluetooth-button-on-ios-controller-center/43036 "2024-07-16T15:30:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![manoj\_a](https://discuss.appium.io/user_avatar/discuss.appium.io/manoj_a/32/12682_2.png) [@manoj\_a](https://discuss.appium.io/u/manoj_a)\
**Post date:** [July 16, 2024, 3:30pm UTC](https://discuss.appium.io/t/unable-to-click-on-bluetooth-button-on-ios-controller-center/43036/1 "2024-07-16T15:30:59Z")

</div>

Hi Team,

I am trying to automate enabling/disabling bluetooth from iOS controller center.  
But for some reason i am getting this error .

```auto
org.openqa.selenium.NoSuchElementException: Can't locate an element by this strategy: By.chained({AppiumBy.id: bluetooth-button})

```

I have cross verified the ID.

The code is

```auto
openIOSControlCenter();
waitForElementToBeDisplayed(5, iosControlCenter.bluetoothButton);
if (iosControlCenter.bluetoothButton.getText().equals("0")) {
	iosControlCenter.bluetoothButton.click();
	Assert.assertEquals(iosControlCenter.bluetoothButton.getText(), "1",
	"Bluetooth wasn't enabled");
	logger.info("Bluetooth was enabled");
} else {
	logger.info("Bluetooth was already enabled");
}

```
