Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add a BiDi event upon context change #2494

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mykola-mokhnach
Copy link
Contributor

Copy link
Member

@KazuCocoa KazuCocoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm overall

const name = await this.getCurrentContext();
const type = name === NATIVE_WIN ? 'NATIVE' : 'WEB';
this.eventEmitter.emit(BIDI_EVENT_NAME, {
method: 'appium.contextUpdate',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not for this pr itself, but maybe it would be nice to have a central definition file for BiDi methods and get this value from the file as a const. We already have log's method name so it will be also the same.

The main purpsoe is to maintain method names in one place (and understand what kind of methods are curretly supported by this driver)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants