Automate mobile web application using Selenium

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • In this video, we will execute Selenium test on Android real device and will use Chrome browser for execution.
    Link for post or code
    learn-automatio...
    ~-~~-~~~-~~-~
    Please watch: "How To Create Maven build For Selenium Framework"
    • How To Create Maven bu...
    ~-~~-~~~-~~-~

Комментарии • 258

  • @WaqasAhmed-xo9fc
    @WaqasAhmed-xo9fc 8 лет назад

    Mukesh Otwani your have the best videos of automation ever. i watch a lot another people but you have the best understanding videos.

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      Hi Waqas :) This comment made my day. Thank you

  • @sivagarikepati3149
    @sivagarikepati3149 8 лет назад +1

    Mukeshji, we are awaited for more videos & new topics on Appium :-)

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад +2

      +Siva Garikepati yes siva will upload soon.

  • @ravi_nelluri
    @ravi_nelluri 8 лет назад +2

    Successfully able to run my first program on my android device . Thx for info sharing :)

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      +Ravi Nelluri Great Cheers Happy Weekend

    • @ravi_nelluri
      @ravi_nelluri 8 лет назад

      +Mukesh otwani : Waiting for continues videos.

    • @ravi_nelluri
      @ravi_nelluri 8 лет назад

      +Mukesh otwani. I am unable to install the Genymotion plugins for eclipse . How can solve this problem

    • @ravi_nelluri
      @ravi_nelluri 8 лет назад

      +Mukesh otwani WebDriver driver = new AndroidDriver(url, capabilities); it's giving warning @AndroidDriver saying that "AndroidDriver is a raw type. References to generic type AndroidDriver should be parameterized" ?? What was this one ??

  • @momokia6059
    @momokia6059 8 лет назад +1

    Tnx, i'm able as well now to start my first automation on chrome, but i wanna start working on automation on an App, and waiting for your next video

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      +MOMO KIA Thanks Momo, next week I will upload on how to work with hybrid and native application..
      Keep visiting :)

  • @qatester7681
    @qatester7681 8 лет назад +2

    Thanks a lot!
    Your videos are very helpful.
    Please keep posting more videos on Appium.

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      +qa tester Thanks yes will update soon

  • @poojathakur516
    @poojathakur516 7 лет назад +1

    Hi mukesh ....your all videos are so helpful for us .... and i learnt a lot from them ....have one request ...Could you please make a video on how to connect virtual device with selenium to write scripts? i am not able to make connection between both ... thanku

  • @sivagarikepati3149
    @sivagarikepati3149 8 лет назад +1

    I appreciate for this, outstanding video & information provided. I have successfully connected to live device and good to go...
    Regards - SG

  • @rahmanmahbub8518
    @rahmanmahbub8518 7 лет назад +2

    Thank you Sir. Nice explanation.

  • @seniorqa7602
    @seniorqa7602 6 лет назад

    Very well organized code with comments appreciated and expecting more videos on mobile qa automation

  • @diptikatkar7738
    @diptikatkar7738 6 лет назад +1

    Nicely explained! Looking forward to see more content related to Appium!

    • @Mukeshotwani
      @Mukeshotwani  6 лет назад

      Sure Dipti.. Appium has lot of changes now so I will update new videos soon.,

  • @ramaraomv3021
    @ramaraomv3021 6 лет назад +1

    Hi mukesh sir.. your videos very helpful to me.. thank you

    • @Mukeshotwani
      @Mukeshotwani  6 лет назад

      Hi ramarao,I am glad my videos are helping you.

  • @bobyvishwakarma
    @bobyvishwakarma 8 лет назад

    Thanks Mukesh.. This Video really helped me..

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      Hi Neeraj I am glad to know it helped you :)

  • @ramandogra1008
    @ramandogra1008 8 лет назад

    Hi Mukesh,
    Glad to find your channel today when I was struggling a lot to learn Mobile Automation through Selenium(Appium). I am working as Software Tester and i am very new to Appium although I have knowledge and handson around Selenium.I am looking forward to automate the MNA(Mobile Native App) of our Client and we are accessing Mobile Devices through Perfecto Cloud. I can see you have explained the concept for Physical Device. Can you please help me how I can proceed further in order to automate the App inside Perfecto Mobile Device using Selenium Appium.

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      Hey Raman Thanks for nice feedback. I have not used perfecto so not sure on this.

  • @KuldeepKumar-wu7xx
    @KuldeepKumar-wu7xx 6 лет назад +1

    Very well explained Mukesh..thanks.

  • @samjain5710
    @samjain5710 8 лет назад

    HI Mukesh,
    Its great video, thanks for the same

  • @reachtoshilpa
    @reachtoshilpa 8 лет назад

    very nice and clear explaination

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      +Shilpa Thans you Shila. Keep visiting.

  • @PorfectGamer3420
    @PorfectGamer3420 Год назад +1

    Thanks you sir for very useful video🙂

  • @rahulgarg6910
    @rahulgarg6910 7 лет назад +3

    Hi Mukesh,
    In My system, appium 1.6.4 is not giving an option as used by you in video fro android and setting.
    Kindly help me where I have been missing something in installation.
    Thanks
    Rahul

    • @mayumayu7377
      @mayumayu7377 7 лет назад

      Im also facing the same issue. can you plz guide us Mukesh?

  • @shriyashkulkarni5
    @shriyashkulkarni5 7 лет назад +1

    Hi Mukesh, your method of explaining the stuff is awesome.
    Can you please help me out with one scenario.
    - I have a mobile website [using android Chrome browser]
    - it has a Google map location link,
    - on clicking Google maps app opens, showing exact location [which is fine]
    - Now I need to close the Google Map app and want google chrome app to come on foreground, so I can run my further test cases
    Is it possible, if yes, then can you please tell me the solution. Thanks

    • @Mukeshotwani
      @Mukeshotwani  7 лет назад

      Hi Shriyash in order to work with native app and browser you need to create 2 instances.
      First one will handle app and second one will handle chrome browser.

  • @Stride_Purple
    @Stride_Purple 8 лет назад +2

    When I inspect login button in firebug I cannot find an id="u_0_5" but it appears when inspected though chrome browser. Why is this?

  • @sivagarikepati3149
    @sivagarikepati3149 8 лет назад +1

    I have few questions on this is, Could you please brief on use of .apk files and precisely which applications require .apk files to test via Appium (Native, Web and Hybrid?) whether is live or simulator. Thanks - SG

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      +Siva Garikepati Hi Siva for Hybrid and native app we have to download apk file. I will post video on this soon.

  • @sandhyareddy1298
    @sandhyareddy1298 8 лет назад +1

    Hi Mukesh,
    waiting for more concepts on APPIUM

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад +1

      +Sandhya Reddy Hi will upload in march

    • @jayshreekant
      @jayshreekant 8 лет назад

      +Mukesh otwani March is over .. when ?

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      Jayshrikant since I am providing free so you have to wait for next video. I am stuck with some work once I am done will upload soon.
      Thanks

    • @jayshreekant
      @jayshreekant 8 лет назад

      +Mukesh otwani Sure sir .. Thanks a lot for your efforts.

  • @sateesh227
    @sateesh227 8 лет назад

    hi,
    I had few questions,
    1. can we use webelement or mobile element for apppium driver when use minor automation
    2. difference between driver.findElement(By.xpath("element locator"));
    and
    driver.findElementByXpath("element locator");
    3. scroll the app in android with swipe method for different mobile screens x and y coordinates will vary how to handle the same
    3.1 can't we use javascriptExecutor for Android to scroll the app

  • @prakash7751able
    @prakash7751able 7 лет назад +1

    Hi Mukesh,
    While running the script chrome is open fine but the site is not opening, the Blank page is displayed and URL field "data " written is displayed. But the site is not loading.
    How to fix the issue?
    Thanks

  • @avinashn2159
    @avinashn2159 4 года назад +1

    Hi Mukesh, Awesome tutorial... is it possible to get all the links from an App (say Netflix app) in android device and play random videos in the same app?

    • @Mukeshotwani
      @Mukeshotwani  4 года назад

      Yes Avinash, you can use findElements method along with random class.

  • @Stride_Purple
    @Stride_Purple 8 лет назад +1

    Why do you say to select "No reset" option since this a test on the browser and not a test on a native app? So how can anything be "reset"?

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      +Stride Purple It will reset your chrome default setting :)

  • @vassassins
    @vassassins 6 лет назад +1

    very helpful, nice explanation.

    • @Mukeshotwani
      @Mukeshotwani  6 лет назад

      Thanks Vaibhav

    • @vijaysonkar2290
      @vijaysonkar2290 6 лет назад

      hello sir I got error::::::::
      Exception in thread "main" org.apache.bcel.verifier.exc.AssertionViolatedException:
      FOUND:
      INTERNAL ERROR: Oops!
      Exiting!!
      at org.apache.bcel.verifier.exc.AssertionViolatedException.main(AssertionViolatedException.java:102)

    • @vijaysonkar2290
      @vijaysonkar2290 6 лет назад

      I am using java client 6.0.0.BETA2.jar
      and selenium ser standlone-3.8.1.jar
      and

  • @srilakshmihd4532
    @srilakshmihd4532 3 года назад +1

    Hi mukesh... All your videos are very very helpful for me.... And am stuck in executing all the programs from testng.xml file and followed your video for that but am getting error at 3rd file everytime that is server error... Please help me

    • @Mukeshotwani
      @Mukeshotwani  3 года назад

      Hi Srilakshmi, please send logs with screenshot My email is mukeshotwani@learn-automation.com

  • @asmarazaq9122
    @asmarazaq9122 4 года назад +1

    Hi Mukesh, your videos are indeed a great source of information. I am currently facing an issue. Can we change the desktop view of a web application to 'mobile view' through automation in selenium? I can do it manually but am not able to figure out how to change desktop view in mobile view. Could you please guide me in this regard?

    • @Mukeshotwani
      @Mukeshotwani  4 года назад +1

      Yes, you can. Please follow below code for the same. You can change device name from available option from browser.
      Map mobileEmulation = new HashMap();
      mobileEmulation.put("deviceName", "Pixel 2");
      Map chromeOptions = new HashMap();
      chromeOptions.put("mobileEmulation", mobileEmulation);
      DesiredCapabilities capabilities = DesiredCapabilities.chrome();
      capabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);
      WebDriver driver = new ChromeDriver(capabilities);
      driver.get("www.google.com");

    • @Mukeshotwani
      @Mukeshotwani  4 года назад +1

      Here is the official document link for reference chromedriver.chromium.org/mobile-emulation

    • @asmarazaq9122
      @asmarazaq9122 4 года назад +1

      Thanks a lot Mukesh

  • @rakeshkumarmishra8349
    @rakeshkumarmishra8349 6 лет назад +1

    Hi Mukesh.. i always followed your videos for learning automation. i have a small request please improve your audio device capability, as your voice is very low and difficult to listen some time. Hope you will work on this.. Thank You.

    • @Mukeshotwani
      @Mukeshotwani  6 лет назад

      Hi Rakesh,
      Yes, I improved a lot in audio quality. Above video is 2015 video. If you check new videos you won't find this issue.
      Check out the latest video audio quality

    • @Mukeshotwani
      @Mukeshotwani  6 лет назад

      ruclips.net/user/MrBantu50videos latest videos link

  • @MatheusSilva-qm3ph
    @MatheusSilva-qm3ph 3 года назад

    Great video even though I didn't know much about Java, I could understand it. A few questions, please, how to make an app that runs on headlles and returns information? Do you know how to teach? Thanks.

  • @rajTrondhjem10
    @rajTrondhjem10 7 лет назад

    Hi Mukesh.. thanks for the video. Will this work on a real android device or do I have to do something more to get it work on a real android device..? Thanks.

  • @rohithbhargav
    @rohithbhargav 6 лет назад

    I am working on android application in eclipse,
    i learnt more form your videos...
    i want to know how to test a application by using relative layouts as their is no text, resourse-id, content-desc are nill for some items.So, can you please tell me how to work with layouts

  • @shailu424
    @shailu424 8 лет назад +1

    Exception in thread "main" org.openqa.selenium.UnsupportedCommandException: That URL did not map to a valid JSONWP resource

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      +shailendra rathore check url seems like url issue only

  • @Matheussilva-vg1nx
    @Matheussilva-vg1nx 4 года назад

    Hello. Great video congratulations. One doubt, is it possible to use selenium on real devices, using for example the firefox driver in headlles mode? Do you have a video about it? Thank you.

  • @tejapradeep
    @tejapradeep 6 лет назад

    Hi mukesh.. I think You have selected Android version 4.4 (latest one available) in Appium settings where as in the desired capabilities scripts you have given it as 5.1.1.. Will not create any problem??

  • @NagarjunaSettipalli
    @NagarjunaSettipalli 8 лет назад

    Hi Mukesh,
    Thank you for sharing valuable information. I don't have Android device.
    Could you please tell me how to run this script in Emulator.
    --
    Thanks

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      +Nagarjuna Settipalli use Geny Motion as emulator .

  • @Pradeepmh_vlogs
    @Pradeepmh_vlogs 7 лет назад

    Hey Mukesh,
    At 6:28 you have created a Project and pasted the code in there right ? Which is that Software you have used to paste the code ?
    And also please explain how to add Selenium server standalone libraries to that software.
    thanks

  • @nitinthakre7128
    @nitinthakre7128 4 года назад +1

    Awesome Video. It helps a lot.

    • @Mukeshotwani
      @Mukeshotwani  4 года назад +1

      Glad to hear that it helped you Nitin :)

  • @veeraratna
    @veeraratna 6 лет назад +1

    HI Mukesh, you have given one 1 android version when you start appium server and in the code you have given "capabilities.setCapability(MobileCapabilityType.VERSION,"5.0.1");" My question is in which android version you tested the facebook login ?

    • @Mukeshotwani
      @Mukeshotwani  6 лет назад +1

      Hi Ratna 3 years ago it was 5.0.1 not latest versions are 8 and 7.. en.wikipedia.org/wiki/Android_version_history

    • @veeraratna
      @veeraratna 6 лет назад

      HI Thanks for your answer, but i am not clear. sorry to bother you.Question is : in the above video, the codes runs in the android version given in capabilities.setCapability(MobileCapabilityType.VERSION,"Any version" ? or version given when we start appium server ?

  • @veeraratna
    @veeraratna 6 лет назад +1

    HI Mukesh, why did you connected using team viewer ? any benefit ?

    • @Mukeshotwani
      @Mukeshotwani  6 лет назад +1

      Hi Ratna for mirroring screen I used for youtube videos. You can ignore this part while testing.

  • @susmitabiswas6415
    @susmitabiswas6415 7 лет назад

    Hi Mukesh,
    In this video I have seen that u r using motorola phone and u have access ur phone from pc.I am also using Motorola phone, but i can't access my phone from pc using team viewer.I can only see the screen from my pc.
    It would be more helpful If u give me the solution for this.
    Thank u Mukesh

  • @rag2745
    @rag2745 6 лет назад

    Hi mukesh,your videos are good. I have one question. is it possible to make single appium setup with single code base for mobile web app of Android & IOS?

    • @niveditamirjikar409
      @niveditamirjikar409 6 лет назад

      Yes its possible you can use Page Object Model and collect locators of iOS and Android and keep it in respective pages using array and pass it using desired capabilities based using remote driver for iOS and android driver for android.

  • @mohanvorganti
    @mohanvorganti 8 лет назад

    Mukesh, I think we can test in android application using Selenium Webdriver without Appium right?

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      +Mohan Vorganti No Mohan you need Appium server or Selendroid to communicate with mobile device then rest of the things taken by Selenium

  • @momokia6059
    @momokia6059 8 лет назад +1

    and would you please put a link of your code somewhere here so that we could download it,,

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад +1

      +MOMO KIA learn-automation.com/execute-appium-selenium-test-android-chrome-browser/

  • @biswadeepak1
    @biswadeepak1 7 лет назад +1

    Hello Mukesh,
    Facing issue while launching chrome browser Appium. Chrome browser is getting opened multiple times(4 times) and closing even if a single @test method is present. After browser launch url is not getting entered.

    • @abdulmalik1066
      @abdulmalik1066 7 лет назад +1

      Download latest chrome driver and put it in the Appium chrome driver location (replace the existing one),
      C:\Program Files (x86)\Appium
      ode_modules\appium
      ode_modules\appium-chromedriver\chromedriver\win\
      It should work

    • @anuradhachannappa6351
      @anuradhachannappa6351 7 лет назад

      Hi Abdul Malik thanks for the suggestion and i had the similar issue and on replacing the the driver with latest one , it worked.
      I have another query how do i test the same case on Internet explorer or firefox browsers. Do we need to replace the drivers in these cases too. Kindly guide me.

    • @abdulmalik1066
      @abdulmalik1066 7 лет назад

      Not sure, Internet Explorer is not there on mobile, firefox is..however last time i Checked I found that there is no way you could start any other browser in mobile except chrome as drivers for those browsers are not there..

    • @anuradhachannappa6351
      @anuradhachannappa6351 7 лет назад

      yes you are correct malik , i got it confirmed from another person also. Only chrome they have used to test mobile test cycles.Thanks.

  • @yogeshganpule2695
    @yogeshganpule2695 6 лет назад +1

    I am trying to install on mac i just see this pop up , after entering ip and port server starts i dont see as many options as on your screen.

    • @Mukeshotwani
      @Mukeshotwani  6 лет назад

      Hi Yogesh, for MAC process is totally different. This will only for windows.

    • @yogeshganpule2695
      @yogeshganpule2695 6 лет назад

      Thanks for reaching out can you make it for mac . I wanted to take your course please let me know

  • @WalkWithShri
    @WalkWithShri 5 лет назад

    I have other questions- can you explain , how you connect an external device with appium server or testing script?

  • @allalevenberg2857
    @allalevenberg2857 7 лет назад +1

    Hi Mukesh,
    I have a unlock screen issue. I have a problem to open any browser. Thank you

    • @Mukeshotwani
      @Mukeshotwani  7 лет назад

      Hi Alla you can remove auto lock while doing automation.

  • @adarshrahangan9559
    @adarshrahangan9559 6 лет назад

    Hi Mukesh, could you please write this program from the beginning step by step like how you used to show in selenium? I am getting errors and I m not able to solve it. Thank you.

  • @tulio84z
    @tulio84z 7 лет назад +1

    Is there a way to get HTTP codes from webpages with selenium?

    • @Mukeshotwani
      @Mukeshotwani  7 лет назад

      Hi Marco,
      Its possible I have shown the same thing in below post
      learn-automation.com/find-broken-links-using-selenium/

  • @sunny9145
    @sunny9145 4 года назад +1

    Can we validate overlapping links, overlapping text etc.. Or I need to go for GUI automation

    • @Mukeshotwani
      @Mukeshotwani  4 года назад

      Hi Sunny any example of this?

    • @sunny9145
      @sunny9145 4 года назад

      @@Mukeshotwani Suppose we want to automate web application on google chrome browser on android device, and on UI the 2 links overlap each other, as it fail responsive UI. Can we validate it using appium that 2 links are overlapped in UI

    • @sunny9145
      @sunny9145 4 года назад

      There are chances that UI element is disturb around screen causing it like particular link is not working or one, text is overlapped to other etc

  • @sureshbabuparathi
    @sureshbabuparathi 8 лет назад

    Does it support to develop in python , java instead ? if so where ?

  • @vidyasree3210
    @vidyasree3210 8 лет назад

    Hi Mukesh,
    Its a very helpful video.Thanks for that.
    I am a new bee to Appium and tried with the same code as you have written, but am getting the following error when executed the code
    "An unknown server-side error occurred while processing the command. Original error: New app path browser did not have extension .apk (WARNING: The server did not provide any stacktrace information)
    Command duration or timeout: 669 milliseconds"
    Could you please help me out solving this issue?
    Thanks.

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      Hi Vidya, as per error log I can see the app you are trying is not android app. Kindly cross check.

  • @NagarjunaSettipalli
    @NagarjunaSettipalli 8 лет назад

    +Mukesh, Thanks for your reply. Do I need to download Genymotion with Virtual Box(143MB) or Genymotion without Virtual Box(43MB).

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      Hi Nagarjuna download Genymotion with Virtual Box(143MB)

  • @user-bb3to3ky5o
    @user-bb3to3ky5o 7 лет назад

    Hi Mukesh, your video is very helpful. I’m having issues starting Chrome on my Android real device. Below is the environment I’m in:
    * Android Galaxy J7 version 6.0.1
    * java-client 4.1.2
    * Eclipse Mars 1 (4.5.1)
    * Java version 1.8
    * Android Chrome version 55.0
    * Appium version 1.5.3 (Ara)
    I’m using your code but I’m starting Appium server programmatically instead of manually. The problem I’m having is that Appium starts my Chrome browser as a fresh install or empty page, then exist Chrome, then my test fails.
    At 4:32 you mentioned to enable “No Reset” for Chrome, so I decided to add this to my desired capabilities: capabilities.setCapability(MobileCapabilityType.NO_RESET, true);
    However, it does not work and I’m trying to understand how to make Appium not to reset my Android Chrome but instead to use my existing Chrome profile that has all my settings. Can you please help or anybody?

    • @abdulmalik1066
      @abdulmalik1066 7 лет назад

      Download latest chrome driver and put it in the Appium chrome driver location (replace the existing one),
      C:\Program Files (x86)\Appium
      ode_modules\appium
      ode_modules\appium-chromedriver\chromedriver\win\
      It should work

  • @cmzkhan1
    @cmzkhan1 7 лет назад

    Hi, I'm getting this error message: FAILED: test1
    org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: spawn OK) (WARNING: The server did not provide any stacktrace information)

  • @sandeepsatelly558
    @sandeepsatelly558 7 лет назад

    hello, I don't have an android device so I installed genymotion and using android 7.0 version on virtual box. But not able to connect device to pdnet! how can we do it?

  • @prakashchandra1103
    @prakashchandra1103 3 года назад +1

    Can we automate mobile device which are in gigafox(paid environment), using appium or any other tool?

    • @prakashchandra1103
      @prakashchandra1103 3 года назад +1

      Hi Mukesh , could you please respond to my query asap, as I am doing poc on this

    • @Mukeshotwani
      @Mukeshotwani  3 года назад

      Hi Prakash, never worked with Gigabox but process will remain same. You need to use Selenium Grid in order to achive this.

  • @sriharshakota3016
    @sriharshakota3016 5 лет назад

    Hello Mukesh,
    Could you please help me on how to add Mod Headers while launching the application on mobile device?
    Thanks

  • @and7998
    @and7998 8 лет назад

    Hey Mukesh, What will be the difference in the settings if we use an emulator like Genymotion?

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      +Anu Dube Hi Anu,
      no setting requird.

  • @ramaraomv3021
    @ramaraomv3021 6 лет назад +1

    Can we connect mobile through usb cable..Or it's connect only through teamviwer?

    • @Mukeshotwani
      @Mukeshotwani  6 лет назад

      Please use usb cable

    • @niveditamirjikar409
      @niveditamirjikar409 6 лет назад

      You can first connect with cable and using adb connect command and providing ip address of your phone, you can connect wireless with your PC.

    • @anushachalana5008
      @anushachalana5008 6 лет назад

      nivedita mirjikar Hi Nivedita, when i type "adb devices" in command prompt and hit enter. It says list of devices attached. but no devices displayed. Please help.

  • @winsharish
    @winsharish 7 лет назад

    Hi Mukesh,
    I am getting the following error message
    Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: spawn ENOENT) @ the following line
    WebDriver driver = new AndroidDriver(url, capabilities);
    The Version of Selenium Standalone server is 3.4.0
    The Version of Java-Client is 5.0.0-Beta.jar
    Version of APPIUM is 1.4.13.1
    Please help me in resolving the issue

  • @kesaniozoprop581
    @kesaniozoprop581 7 лет назад

    Hi Mukesh Sir..please comment the below video. program and text note book.

  • @surbhithakur5779
    @surbhithakur5779 7 лет назад

    Hi Mukesh,
    I m beginner in the field of automation ,
    i m getting this message while launching appium server-
    > Checking if an update is available
    > Update not available
    > Launching Appium server with command: C:\Program Files (x86)\appium-android\Appium
    ode.exe lib\server\main.js --address 127.0.0.1 --port 4723 --app C:\Users\Surbhi\Desktop\selenium\selendroid-test-app-0.17.0.apk --app-pkg io.selendroid.testapp --platform-name Android --platform-version 22 --automation-name Appium --device-name "Viaan V551" --log-no-color
    > Killed Node Server.
    > Appium server process ended
    Plz help me out what does it mean??

  • @suri3614
    @suri3614 7 лет назад

    Hi mukesh,
    how can i solve this issue
    org.openqa.selenium.WebDriverException: ERROR running Appium command: ENOENT, no such file or directory 'D:\sdk\platform-tools;\build-tools'

  • @rahulrana892
    @rahulrana892 5 лет назад

    How to upload file using appium on mobile web app via chrome and Safari ?

  • @yadd13
    @yadd13 7 лет назад

    bro I am getting this error while trying the command adb devices
    Err: adb server version (31) doesn't match this client (36); killing...
    * daemon started successfully *
    Can you help please ?

  • @jass627
    @jass627 7 лет назад +1

    Hi Mukesh, facing an issue, the chrome browser opens on my Galaxy 6.0.1. It does not navigate to facebook. on galaxy address bar it just says "data:,". any help would be appreciated. I have sent you and e-mail with this issue also.

    • @Mukeshotwani
      @Mukeshotwani  7 лет назад

      You should try with Appium 1.6.4 version

    • @prakash7751able
      @prakash7751able 7 лет назад

      Hi, Mukesh, I am using Appium 1.6.4 version but the same problem I am getting.
      Please provide a solution?

    • @julysummer6148
      @julysummer6148 6 лет назад

      Hey, did you find an answer, Im having the same problem :)

  • @soumyasen3338
    @soumyasen3338 7 лет назад

    Hello sir,
    I am facing one issue, for me the chrome browser is opening and getting closed, not navigated to the url, and following is the error message i am getting
    org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: A new session could not be created. (Original error: session not created exception
    from unknown error: Runtime.executionContextCreated has invalid 'context':
    Please help

  • @rpandian1381
    @rpandian1381 3 года назад

    Hi,
    Iam facing "PLATFORM_NAME cannot be resolved or is not a field" while trying to defining PLATFORM_NAME. is there any clue to proceed further..

  • @paritalamahi7613
    @paritalamahi7613 7 лет назад +1

    Hi mukesh,
    I followed your video when i am trying to automate in my device its showing below error message
    I am using
    android-sdk_r24.4.1-windows
    AppiumForWindows_1_4_13_1
    java-client-3.3.0
    PdaNetA4197
    java.lang.UnsupportedClassVersionError: io/appium/java_client/android/AndroidDriver : Unsupported major.minor version 52.0
    Please help me ASAP in solving the issue

    • @Mukeshotwani
      @Mukeshotwani  7 лет назад

      Hi Paritala please use Java 8 to work

    • @paritalamahi7613
      @paritalamahi7613 7 лет назад

      Hi mukesh,Even after using java8 also same error occuring

  • @shreekantnagawade2559
    @shreekantnagawade2559 8 лет назад

    Hey,I copy code from ur website ,its running Chrome on mobile but not moving forward ,no error coming ,screen remain with 'data:,' url ...what is bug ?also I run Automate Mobile application,it running completely ,so whats issue here ?

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      Hi Shree you need to update chrome driver version in appium to fix this issue.

  • @cksk5951
    @cksk5951 7 лет назад

    Hi Mukesh, I am getting below error, not sure how to fix this. Can you please help? Thanks
    Failed to install C:\Program Files (x86)\Appium
    ode_modules\appium\build\unlock_apk\unlock_apk-debug.apk: Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install io.appium.unlock without first uninstalling.]

  • @surajaroutray391
    @surajaroutray391 5 лет назад

    Can anyone tell me where to find the appium server addrees url which is required to paste inside url

  • @adityamalani7455
    @adityamalani7455 5 лет назад

    When I import org.openqa.selenium.remote.DesiredCapabilities
    then show error is org.openqa.selenium.remote.DesiredCapabilities is not accessible
    bro please let me khow what I do

  • @chilakapatisai
    @chilakapatisai 8 лет назад

    Hi Mukesh,will it work if we don't install Microsoft webdriver?when tried to install that,it is saying incompatible to current browser..rather I have installed MS dot net framework..will this be replacable to MS webdriver?

  • @mohanms9856
    @mohanms9856 8 лет назад

    Dear Mukesh,
    i have fallowed the same steps but always getting
    error: Failed to start an Appium session, err was: Error: Did not get session redirect from Chromedriver
    > info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Did not get session redirect from Chromedriver)","origValue":"Did not get session redirect from Chromedriver"},"sessionId":null}
    Please help

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      +mohan ms Strange Mohan it works always for me.. Send ur code mukeshotwani@learn-automation.com

  • @shreerangakv7183
    @shreerangakv7183 7 лет назад

    How to open incognito mode using desired cap ?

  • @tejaswinipawar8964
    @tejaswinipawar8964 7 лет назад +1

    i cant attach my device to eclipse plz help me

    • @Mukeshotwani
      @Mukeshotwani  7 лет назад

      HI Tej make sure device is attached via pda.net

  • @sarojduwadi5962
    @sarojduwadi5962 7 лет назад

    It goes well upto the facebook login page but after that Email and password is not entering?? code is alright i dont know whats wrong can you helpp ??

  • @anushachalana5008
    @anushachalana5008 6 лет назад

    Hi Mukesh, when i type "adb devices" in command prompt and hit enter. It says list of devices attached but no devices displayed. Please help.

  • @jaiminpatel1335
    @jaiminpatel1335 7 лет назад +1

    hey mukesh rightnow appium server totally changed can you please updated one video

  • @priyankamehta5995
    @priyankamehta5995 8 лет назад

    Hi, Mukesh
    while launching the node server i am getting this error..
    > Error: Cannot find module 'C:\Program Files (x86)\Appium
    ode_modules\appium\lib\server\main.js'

  • @MrMadhur18
    @MrMadhur18 7 лет назад +1

    hi mukesh i am getting below error please help:
    A new session could not be created. (Original error: An unknown server-side error occurred while processing the command. (Original error: unknown error: Failed to clear data for com.android.chrome on device 1206cc91: Error: java.lang.SecurityException: PID 14981 does not have permission android.permission.CLEAR_APP_USER_DATA to clear data of package com.android.chrome

    • @moniljoshi1850
      @moniljoshi1850 7 лет назад

      Hi Madhur I am also getting same issue I have tried solutions on stack overflow bt not able to solve.Can u plz help.

    • @abdulmalik1066
      @abdulmalik1066 7 лет назад

      Download latest chrome driver and put it in the Appium chrome driver location (replace the existing one),
      C:\Program Files (x86)\Appium
      ode_modules\appium
      ode_modules\appium-chromedriver\chromedriver\win\

  • @greengobis
    @greengobis 5 лет назад

    Hi Mukesh,
    I am getting the below error for capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME,"Android"); :
    PLATFORM_NAME cannot be resolved or is not a field
    Java Client: 7.0.0
    How can I resolve the above issue.
    Thanks.

  • @chakradhargollamudi5557
    @chakradhargollamudi5557 3 года назад +1

    Hi Mukesh,
    How to upload files in the mobile browser

    • @Mukeshotwani
      @Mukeshotwani  3 года назад

      Hi Chakaradhar here is the link www.browserstack.com/docs/automate/selenium/test-file-upload#uploading-files-from-your-machine

    • @chakradhargollamudi5557
      @chakradhargollamudi5557 3 года назад +1

      Thanks Mukesh
      But by using remotedriver we cannot Send files from our local to remote cloud mobile device in Perfecto

    • @Mukeshotwani
      @Mukeshotwani  3 года назад

      @@chakradhargollamudi5557 perfecto supports the same check official doc

  • @Peteman
    @Peteman 8 лет назад

    I keep getting an error "Your computer is running adb.exe. It is not compatible with pdanet."

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      Hi Peter then you need to uninstall PDANet and download it again and while installation update the drivers.

  • @RavindraKumar-hb5mm
    @RavindraKumar-hb5mm 7 лет назад

    Hi Mukesh, it says, adb exe is not compatible, plz help how can i fix this.

  • @gyanaranjansahoo2902
    @gyanaranjansahoo2902 6 лет назад

    Plz upload a update video related to "HOW TO DOWNLOAD Appium"

  • @pankajkulkarni8110
    @pankajkulkarni8110 8 лет назад

    Hi Mukesh,
    I am getting error i.e Session could not created in eclipse
    for Appium...
    error: Logcat capture failed: spawn "C:\android-sdk-windows\platform-tools\adb.exe" ENOENT
    Please help to get out of it.

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      Hi Pankaj,
      Which appium version you are using ? I would suggest use 1.4.13 version of appium and follow the same steps again.

    • @pankajkulkarni8110
      @pankajkulkarni8110 8 лет назад +1

      K, I will try..

  • @WalkWithShri
    @WalkWithShri 5 лет назад

    Are you test on real device in this video?

  • @gabrieldash721
    @gabrieldash721 4 года назад +1

    can i build a script like this on my mobile app?

    • @Mukeshotwani
      @Mukeshotwani  4 года назад

      Yes Gabriel, Appium is for mobile automation so you can use either your device or AVD for the same.

    • @gabrieldash721
      @gabrieldash721 4 года назад

      @@Mukeshotwani ok, and the appiun can run without a computer, build a .apk and when I run this app normally?

  • @RamaSwamySRAMu
    @RamaSwamySRAMu 7 лет назад

    Hi, Mukesh. The below is the error i am getting. But i see some actions happening in the Mobile browser.Its opening the browser and entering the data like "/.data"
    Error Code:
    Nov 26, 2016 7:45:12 PM org.openqa.selenium.remote.ProtocolHandshake createSession
    INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end
    [Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\Default suite\Default test.xml
    [Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\Default suite exists: true
    FAILED: test1
    org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: An unknown server-side error occurred while processing the command. (Original error: unknown error: Device ZY223G5WGF is not online
    (Driver info: chromedriver=2.18.343845 (73dd713ba7fbfb73cbb514e62641d8c96a94682a),platform=Windows NT 10.0 x86_64))) (WARNING: The server did not provide any stacktrace information)
    Command duration or timeout: 0 milliseconds
    Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:48:19 -0700'
    System info: host: 'Madhuram', ip: '192.168.56.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_60'
    Driver info: driver.version: AndroidDriver
    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.ErrorHandler.createThrowable(ErrorHandler.java:216)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:168)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:161)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:64)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
    at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:69)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
    at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:40)
    at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
    at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:241)
    at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:128)
    at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:141)
    at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:36)
    at io.appium.java_client.AppiumDriver.(AppiumDriver.java:114)
    at io.appium.java_client.AppiumDriver.(AppiumDriver.java:132)
    at io.appium.java_client.android.AndroidDriver.(AndroidDriver.java:92)
    at demo.StartChrome.test1(StartChrome.java:46)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:100)
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:646)
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:811)
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1129)
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
    at org.testng.TestRunner.privateRun(TestRunner.java:746)
    at org.testng.TestRunner.run(TestRunner.java:600)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:366)
    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)
    at org.testng.SuiteRunner.run(SuiteRunner.java:268)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1264)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1189)
    at org.testng.TestNG.runSuites(TestNG.java:1104)
    at org.testng.TestNG.run(TestNG.java:1076)
    at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:152)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:57)
    ===============================================
    Default test
    Tests run: 1, Failures: 1, Skips: 0
    ===============================================
    ===============================================
    Default suite
    Total tests run: 1, Failures: 1, Skips: 0
    ===============================================
    [Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite\toc.html
    [Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite exists: true
    [Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite\Default test.properties
    [Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite exists: true
    [Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite\index.html
    [Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite exists: true
    [Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite\main.html
    [Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite exists: true
    [Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite\groups.html
    [Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite exists: true
    [Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite\classes.html
    [Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite exists: true
    [Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite
    eporter-output.html
    [Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite exists: true
    [Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite\methods-not-run.html
    [Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite exists: true
    [Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite\testng.xml.html
    [Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\Default suite exists: true
    [Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old\index.html
    [Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\old exists: true
    [TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@1b40d5f0: 176 ms
    [TestNG] Time taken by org.testng.reporters.jq.Main@47f37ef1: 433 ms
    [Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\testng-failed.xml
    [Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output exists: true
    [Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\Default suite\testng-failed.xml
    [Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\Default suite exists: true
    [TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 43 ms
    [Utils] Attempting to create R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\junitreports\TEST-demo.StartChrome.xml
    [Utils] Directory R:\Appium_Softwares\AppICE_Data_Driven_FW\AppiumTest\test-output\junitreports exists: true
    [TestNG] Time taken by org.testng.reporters.JUnitReportReporter@35bbe5e8: 129 ms
    [TestNG] Time taken by org.testng.reporters.XMLReporter@7e0babb1: 145 ms
    [TestNG] Time taken by org.testng.reporters.EmailableReporter2@75bd9247: 121 ms

    • @abdulmalik1066
      @abdulmalik1066 7 лет назад

      Download latest chrome driver and put it in the Appium chrome driver location (replace the existing one) and try,
      C:\Program Files (x86)\Appium
      ode_modules\appium
      ode_modules\appium-chromedriver\chromedriver\win\

  • @avinashkrishnamoorthy
    @avinashkrishnamoorthy 7 лет назад

    hi please send link for how to take xpath in ui viewer

  • @ritu82682
    @ritu82682 8 лет назад

    adb.exe not compatible with pdanet ... please provide steps to connect device to machine?

    • @TheUkr1244
      @TheUkr1244 8 лет назад +1

      Yes even i faced same error.

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      kindly use latest version of pdanet and android

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      kindly use latest version of pdanet

  • @jayshreekant
    @jayshreekant 8 лет назад

    Dear Sir,
    I am getting below Exception
    FAILED CONFIGURATION: @BeforeClass setUp
    org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity) (WARNING: The server did not provide any stacktrace information)
    Command duration or timeout: 4.62 seconds
    Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      +Jayshrikant Shrivastava Restart jenkins and run again

    • @jayshreekant
      @jayshreekant 8 лет назад

      +Mukesh otwani Sir this exception is realted to Appium / TestNg / Selenium ... I am not using jenkins at all !

  • @zareenabegum9095
    @zareenabegum9095 6 лет назад

    Hi Mukesh, can you pls respond to my query below, I am facing below error

  • @My_ButtaBomma
    @My_ButtaBomma 4 года назад +1

    Audio sound is very low

    • @Mukeshotwani
      @Mukeshotwani  4 года назад +1

      Yes s Rekha, I had this issue earlier but now I fixed voice issue in recent videos.

  • @deepakpradhan9743
    @deepakpradhan9743 7 лет назад

    Hello sir
    I got the exception saying that SessionNotCreated.
    How to resolve it. Pls help me.