Home > Mobile >  Mobile used web app automation without Appium?
Mobile used web app automation without Appium?

Time:11-02

Can we use normal selenium web automation to test a mobile web app by changing window size to mobile resolution? or do we need to use an emulator and appium?

Currently, I'm working in a company. I didn't use appium for mobile web app automation. What I did is an automated web app with selenium ,Robot Framework as a normal web application and changed the window size to mobile resolution. Is it right?

sample code for window size set for mobile size is shown below for more understanding...!

  open browser    https://sample.com    chrome
  set window size  440  717

Thanks for your help guys!!

CodePudding user response:

I would suggest you to use Appium if it's a mobile-based web application as this is the preferred way of end-to-end testing. For mobile automation, you don't need to download Android Studio as it is an heavy-weight tool. You can make use of avdmanager. To create emulators, you can refer https://gist.github.com/mrk-han/66ac1a724456cadf1c93f4218c6060ae

CodePudding user response:

Hi guys, I found a clarification for this according to my question.I'm trying to automate a WebApp for mobile and I'm testing in a mobile chrome browser. So it is easy to find elements with appium.We will not need appium inspector to capture elements as we are automating a mobile web application.Not a Native Android app.

https://appiumpro.com/editions/57-how-to-determine-element-locators-for-mobile-web-and-hybrid-apps

Refer above link and inspect the elements. It's totally the same as we are doing normal web automation. The only difference is using the emulator and appium server to run the test. It was a kind of major issue for me as a beginner.I think now it's been solved.

  • Related