Giter VIP home page Giter VIP logo

macaca-wd's Introduction

macaca-wd's People

Contributors

centy720 avatar jodeee avatar kobe990 avatar megolee avatar meowtec avatar paradite avatar snapre avatar tsj1107 avatar xudafeng avatar yihuineng avatar zhangyuheng avatar zhuyali avatar ziczhu avatar zivyangll avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

macaca-wd's Issues

fix docs

  • TOC order is different from actual doc
  • domEvent :utility is missing method signature

diff between macaca-wd and wd?

Hi, macaca is a amazing testing framework! but I'm confuse on one question:

I know that wd and macaca-wd are both are implementation of the webdriver protocol in Node, can anyone tell me what difference between both framework? can i use admc/wd in macaca?

macaca-wd url切换时,cookie丢失了

业务场景需要登录,先登录,后get至目标地址,cookie为空跳至登录
部分主要代码:
var driver = wd.promiseChainRemote({
host: 'localhost',
port: process.env.MACACA_SERVER_PORT || 3456
})
const urlTemp =
'https://pre-air.1688.com/apps/alim/star-conquerors-hysc/spa-alipay.html'

const url =
'https://pre-air.1688.com/apps/alim/star-conquerors-hysc/spa-alipay.html' 

driver.get(${url}, { preserveCookies: true })
.elementByCss(
'#welcome-page > div.login-blocks.show-login-register-link > a.show-pwd-login-link'
)
.click()
.elementById('fm-login-id')
.sendKeys(username)
.elementById('fm-login-password')
.sendKeys(password)
.elementByCss('#login-form > div.fm-btn > button')
.click()
})
it('页面跳转', async function () {
console.log( await driver.allCookies())
driver.get(${url}, { preserveCookies: true })
console.log( await driver.allCookies())
})
第二个driver.allCookies()返回为空

image

Add Documentation Versioning and Release Notes

Our company is still using version 2 of this package, I'm a new joiner of that company. It quite hard for me to understand the code if there isn't any documentation of the previous version.

It will very helpful as well if you can tag each of the release commit and add release notes. I checked the latest NPM package version is 3.3.0 but in the Github, there is no release tag.

macaca请求需要Basic Auth认证的地址时没有携带Authentication信息导致服务器返回401

服务器设置了Basic Auth认证,在脚本中设置了host,port,user,pwd等信息。

使用Charles抓包发现,macaca发出的请求中只有第一个create session的请求携带了Authentication,后面的请求都没有Authentication认证,导致服务器返回了401,case执行失败。

request1

request2

调查发现 macaca-wd模块中webdriver.js中删除了了url中的auth信息,导致最终认证失败。经过测试发现注释掉这一行就能正常运行。不明白为什么要delete这个auth?
https://github.com/macacajs/macaca-wd/blob/master/wd/lib/webdriver.js#L25

Android设备设置'autoAcceptAlerts': true时会误操作

【问题】Android设备设置'autoAcceptAlerts': true时,一旦碰到界面上有元素focusable=true的元素时会自动点击,打乱脚本的执行。如下图的的“注册账号”按钮会被自动触发。
image

macaca-doctor version: 2.0.9

Node.js checklist:

node env: /usr/local/bin/node
node version: v9.3.0

iOS checklist:

Xcode Command Line Tools is ready, version: 2349.
xcodebuild version: 9.1
iproxy[usbmuxd] is installed at: /usr/local/bin/iproxy
ios_webkit_debug_proxy is installed at: /usr/local/bin/ios_webkit_debug_proxy
carthage is installed, version: 0.27.0

Android checklist:

JAVA version is 1.8
JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
ANDROID_HOME is set to /Users/zhj/android-sdk-macosx
Platforms is set to /Users/zhj/android-sdk-macosx/platforms/android-27
ADB tool is set to /Users/zhj/android-sdk-macosx/platform-tools/adb
gradle is installed, version: 4.4

Installed driver list:

android: 2.0.46
chrome: 1.0.7

macaca的api说明举例少,入门门槛有点高呀

正在调研前端自动化工具。看到macaca,想用macaca写个case。过程中就发现,api里虽然给出了基本说明,但未举例如何使用。比如:elementsByClassName 只说返回是个Array,如何从这个返回中选中某个元素未有说明。想查看源代码,发现也没有工具的原理架构图。可能对于从其他前端自动化工具迁移到macaca上的用户来说可能比较易于接受,对于小白用户,感觉还应该再丰富下api的举例。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.