Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to change the default web application URL #1547

Closed
2 tasks done
Bapugit opened this issue Jul 15, 2024 · 4 comments
Closed
2 tasks done

Not able to change the default web application URL #1547

Bapugit opened this issue Jul 15, 2024 · 4 comments
Labels
need info More information is needed from issue creator

Comments

@Bapugit
Copy link

Bapugit commented Jul 15, 2024

Is this an issue specifically with Appium Inspector?

  • I have verified that my issue does not occur with Appium, and should be investigated as an Appium Inspector issue

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Hi,
I am using Appium inspector to capture locators for Mobile Web and naive Apps, I have selected Sauce as a Cloud providers.
I was able to test and capture the locators for Native Mobile App without any issues.
However, I am having issues with Mobile Web application.

I used below JSON representation for desired capabilities, I could start the session with my Sauce credentials , after that a default web application(appium.io/docs) is being popped-up in screen shot panel, but I am not able to change/edit that URL to my desired web application. Pls help me how can I change that to my desired application and capture the locators. I followed the guidelines as per your documentation.
I contacted the Sauce Labs, they suspected that it would be an issue from Appium Inspector.

{
"appium:automationName": "UiAutomator2",
"appium:platformVersion": "12.0",
"platformName": "Android",
"browserName": "Chrome",
"appium:deviceName": "Android GoogleAPI Emulator",
"sauce:options": {
"build": "Test",
"name": "WDIOTest",
"appiumVersion": "2.0.0"
}
}

AppiumInspector.mp4

Expected Behavior

I should able to edit/change the default application URL for the web application

Operating System

Windows

Appium Inspector Version

2023.10.4

Appium Version

"appiumVersion": "2.0.0"

Further Information

No response

@Bapugit Bapugit added the bug Something isn't working label Jul 15, 2024
@KazuCocoa
Copy link
Member

What URL did you send via the command tabs? https://appium.github.io/appium-inspector/latest/session-inspector/commands/ Asking it in https://discuss.appium.io/ might also help.

@KazuCocoa KazuCocoa added need info More information is needed from issue creator and removed bug Something isn't working labels Jul 15, 2024
@eglitise
Copy link
Collaborator

The behavior in the Session Inspector is expected - since the app is opened in web context, only webview contents are shown, therefore native app components (such as the URL bar) will not be accessible.
You may try switching the context at the top of the application to native, if possible - that will expose the URL bar elements.

@eglitise
Copy link
Collaborator

But yes, as Kazu said, you can also try switching to the Commands tab and changing the URL via the Web -> navigateTo command.

@Bapugit
Copy link
Author

Bapugit commented Jul 16, 2024

Thanks a lot, changing to the NATIVE_APP on top helped me to change the default URL.

@Bapugit Bapugit closed this as completed Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need info More information is needed from issue creator
Projects
None yet
Development

No branches or pull requests

3 participants