Forum Discussion

PraveenRaj13's avatar
PraveenRaj13
Copper Contributor
Mar 19, 2020

Session id not created in chromium Edge browser through selenium webdriver

Dear Team 

 

recently my project we have migrated Chromium Edge browse in selenium framework I try below-mentioned code but I get session not create exception please give suggestion  

 

my system details 

Win 7 Os and selenium 3.141 version and chromium edge browser version is  82 + 

my coding :

System.setProperty("webdriver.chrome.driver", "C:\\Users\\pceqa\\Downloads\\edgedriver_win64\\msedgedriver.exe");

ChromeOptions op =new ChromeOptions();
op.setBinary("C:\\Program Files (x86)\\Microsoft\\Edge Beta\\Application\\msedge.exe");

driver=new ChromeDriver(op);

Error trace 

Starting MSEdgeDriver 81.0.416.34 (03120a7eee79e003b101978167af19f238dd1de0) on port 17693
Only local connections are allowed.
Please protect ports used by MSEdgeDriver and related test frameworks to prevent access by malicious code.
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: session not created: No matching capabilities found
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'QA-AUTO-WIN7-06', ip: '10.16.53.11', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_73'
Driver info: driver.version: ChromeDriver
remote stacktrace: Backtrace:
Ordinal0 [0x000000013F8F6DC2+3239362]
Ordinal0 [0x000000013F7E8C62+2133090]
Ordinal0 [0x000000013F6927A4+731044]
Ordinal0 [0x000000013F61EABA+256698]
Ordinal0 [0x000000013F61E3BE+254910]
Ordinal0 [0x000000013F61FA01+260609]
Ordinal0 [0x000000013F61CB9F+248735]
Ordinal0 [0x000000013F5FA1A3+106915]
Ordinal0 [0x000000013F5FB50E+111886]
Ordinal0 [0x000000013F804781+2246529]
GetHandleVerifier [0x000000013F9D5454+767796]
GetHandleVerifier [0x000000013F9D5211+767217]
GetHandleVerifier [0x000000013F9EDFF1+869073]
GetHandleVerifier [0x000000013F9D5CB7+769943]
Ordinal0 [0x000000013F7FA314+2204436]
Ordinal0 [0x000000013F80665E+2254430]
Ordinal0 [0x000000013F824711+2377489]
BaseThreadInitThunk [0x000000007716556D+13]
RtlUserThreadStart [0x00000000773C372D+29]

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62)
at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:157)
at edge.NewClassForEDge.main(NewClassForEDge.java:17)

 

i can search more thinks in google but I dont get any matched solution

please helps us 

 

 

 

 

 

  • Hi, it's a bit hard to read because one can't tell clearly where the text ends and where the code or error messages begin, you can use the "code" in post editing mode to reformat it
    • RAKESH999's avatar
      RAKESH999
      Copper Contributor

      HotCakeX 

      Your reply shows very poor attitude for assisting n resolving issues

      The detailed error log clearly says the error the start line and the logs.

       

      • HotCakeX's avatar
        HotCakeX
        MVP

        RAKESH999 


        RAKESH999 wrote:

        HotCakeX 

        Your reply shows very poor attitude for assisting n resolving issues

        The detailed error log clearly says the error the start line and the logs.

         


        That's not your business judging others' attitude in this forum, And I wasn't talking to you, so your rude comment is irrelevant.

        my comment was about a legit difficulty in reading the original post.

  • Re:Session id not created in chromium Edge browser through selenium webdriver


    Hi,

    Update selenium jar to 3.141.59 and update the browser and then add the relavent driver and then check.

    It may work and it worked for me
    • RAKESH999's avatar
      RAKESH999
      Copper Contributor
      Hi,
      I am using Selenium 3.141.59 with edge browser as 89. I am getting the same error "Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: session not created: No matching capabilities found"

      How to add chrome capabilities such as headless, disable infobars directly to edgeoptions?