How to identify element when a new app is opened by parent app

Scenario : When we click an element on the parent app a new app is launched in a new window on top of the parent app. The new app does not have a separate apk file but seems to be integrated.

Now when we try to access the elements of the new app it fails. The activity of the new app is different then the parent app but the package name is same.

Appium server version is : 1.7.0

Are you getting any error locating element? Please post the Appium log.

I think you should change the context and capabilities of respective app.Hope the capabilities of new app are different like appActivity and LaunchActivity.

Install Appium studio and try to record the flow and see the code section how its identifying elements.Hope this resolves issue.