Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 16, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 16, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 16, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 16, 2025

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025

      Minecraft licensing robbed us of this controversial NFL schedule release video

      May 16, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The power of generators

      May 16, 2025
      Recent

      The power of generators

      May 16, 2025

      Simplify Factory Associations with Laravel’s UseFactory Attribute

      May 16, 2025

      This Week in Laravel: React Native, PhpStorm Junie, and more

      May 16, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025
      Recent

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»SessionNotCreatedException: Could not start a new session, Selenium connecting with Appium server

    SessionNotCreatedException: Could not start a new session, Selenium connecting with Appium server

    November 26, 2024
    Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. 
    Host info: host: 'XXXXX', ip: 'XXXXX'
    Build info: version: '4.26.0', revision: '69f9e5e'
    System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '23.0.1'
    Driver info: io.appium.java_client.android.AndroidDriver
    Command: [null, newSession {capabilities=[Capabilities {app: C:UsersxxxxxxOneDriveDoc..., appActivity: app.superssmart.ui.MainActi..., appPackage: app.superssmart, browserName: , deviceName: emulator-5554, noReset: true, platformName: ANDROID}]}]
    Capabilities {app: C:UsersxxxxOneDriveDoc..., appActivity: app.superssmart.ui.MainActi..., appPackage: app.superssmart, browserName: , deviceName: emulator-5554, noReset: true, platformName: ANDROID}
        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:563)
        at io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:270)
        at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:174)
        at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:91)
        at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:103)
        at io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:109)
        at appium.test.App_Main.main(App_Main.java:29)
    Caused by: java.lang.IllegalArgumentException: Illegal key values seen in w3c capabilities: [app, appActivity, appPackage, deviceName, noReset]
        at org.openqa.selenium.remote.NewSessionPayload.lambda$validate$5(NewSessionPayload.java:163)
        at java.base/java.util.stream.ReferencePipeline$15$1.accept(ReferencePipeline.java:580)
        at java.base/java.util.stream.ReferencePipeline$15$1.accept(ReferencePipeline.java:581)
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215)
        at java.base/java.util.stream.ReferencePipeline$15$1.accept(ReferencePipeline.java:581)
        at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1709)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:570)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:560)
        at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265)
        at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:636)
        at org.openqa.selenium.remote.NewSessionPayload.validate(NewSessionPayload.java:167)
        at org.openqa.selenium.remote.NewSessionPayload.<init>(NewSessionPayload.java:70)
        at org.openqa.selenium.remote.NewSessionPayload.create(NewSessionPayload.java:99)
        at org.openqa.selenium.remote.NewSessionPayload.create(NewSessionPayload.java:84)
        at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:60)
        at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:176)
        at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:237)
        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)
        ... 6 more
    

    Code:

    public static AndroidDriver driver;
    public static void main(String[] args) throws MalformedURLException, InterruptedException {
            File appDir = new File("C:\Users\keert\OneDrive\Documents\App");
            File app=new File(appDir,"app.apk");
            DesiredCapabilities cap=new DesiredCapabilities();
            cap.setCapability(CapabilityType.BROWSER_NAME, "");
            cap.setCapability("platformName", "Android");
            cap.setCapability("app", app.getAbsolutePath());
            cap.setCapability("deviceName", "emulator-5554");
            cap.setCapability("appPackage", "app.superssmart");
            cap.setCapability("appActivity", "app.superssmart.ui.MainActivity");
            cap.setCapability("noReset", true);
    
            driver=new AndroidDriver(new URL("http://127.0.0.1:4723/"),cap);
    

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleHow Predictive Data Analytics Transforms Quality Assurance 
    Next Article Hugging Face Releases SmolVLM: A 2B Parameter Vision-Language Model for On-Device Inference

    Related Posts

    Machine Learning

    Salesforce AI Releases BLIP3-o: A Fully Open-Source Unified Multimodal Model Built with CLIP Embeddings and Flow Matching for Image Understanding and Generation

    May 16, 2025
    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 16, 2025
    Leave A Reply Cancel Reply

    Hostinger

    Continue Reading

    ERROR_EVALUATION_EXPIRATION [BSoD Fix]

    Operating Systems

    Advanced tracing and evaluation of generative AI agents using LangChain and Amazon SageMaker AI MLFlow

    Machine Learning

    Google Cloud: Driving digital transformation

    Artificial Intelligence

    CVE-2023-53139 – Linux Kernel NFC fdp Null Pointer Dereference

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    CVE-2025-32421 – Next.js Race Condition Page Prop Exposure

    May 15, 2025

    CVE ID : CVE-2025-32421

    Published : May 14, 2025, 11:15 p.m. | 3 hours, 51 minutes ago

    Description : Next.js is a React framework for building full-stack web applications. Versions prior to 14.2.24 and 15.1.6 have a race-condition vulnerability. This issue only affects the Pages Router under certain misconfigurations, causing normal endpoints to serve `pageProps` data instead of standard HTML. This issue was patched in versions 15.1.6 and 14.2.24 by stripping the `x-now-route-matches` header from incoming requests. Applications hosted on Vercel’s platform are not affected by this issue, as the platform does not cache responses based solely on `200 OK` status without explicit `cache-control` headers. Those who self-host Next.js deployments and are unable to upgrade immediately can mitigate this vulnerability by stripping the `x-now-route-matches` header from all incoming requests at the content development network and setting `cache-control: no-store` for all responses under risk. The maintainers of Next.js strongly recommend only caching responses with explicit cache-control headers.

    Severity: 3.7 | LOW

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    Oracle Substring function overview with examples

    June 19, 2024

    Vxceed secures transport operations with Amazon Bedrock

    May 15, 2025

    Upgrade your home audio with this JBL soundbar that’s still $150 off

    February 19, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.