-
Notifications
You must be signed in to change notification settings - Fork 3
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
GetSize() and WebDriverWait . Can we have support for this two? #68
Comments
We can back port |
Just Found Out elementToBeClickable wont work but visibilityOfElementLocated will work. I guess that would be fine for me. |
Are you sure you pass correct locator? What version of driver do you use: 0.2.0 or master? We had an issue about Can you reproduce it on test app with password field only or can you provide page source and driver logs? |
Yeah the locator is correct and am using 0.2.0.* driver. |
Few Gestures request, can we have tapAtLocation feature through TouchAction or JavaScript Executor. |
The error message comes from ValueCommand.cs#L28 meaning that the element that you are referencing is not of a control type. The UI tree screenshot shows that the password box has correct type of Can you please provide a code of the part of test case where you locate the element? |
For I am referring to https://code.google.com/p/selenium/wiki/JsonWireProtocol#POST_/session/:sessionId/moveto and https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/click commands. |
Is there any way to know the size of an Element from getPageSource() ? If not then,how is it calculated ? |
No, it is not included into page source. You can ask for elements rect or size using selenium commands.
Make sure to use both Outer and Inner drivers built from source of PR #69 |
Yeah i am able to get Size and all but was just wondering how is it calculated or can we find it in GetpageSource(). |
I will add it some time later. This and next weeks are going to be busy. |
Regarding Gestures, i am not able to tap at location using anything. I guess the only way left now is to perform it through JavaScript Executor ? |
Have you tried move_by_offset from Action Chains? It does not require element and lets you move from top left corner of the screen. In first comment in issue #67 you can see that sleekweasel uses exactly move_by to click at specified screen location, no element required. |
Use Action Chain instead of Touch Actions. What langue do you use to write tests? |
I use Java. And Actions Chain is for Python i guess. |
Please see https://selenium.googlecode.com/git/docs/api/java/org/openqa/selenium/interactions/Actions.html Something like this should work, hopefully Actions action = new Actions(web driver);
action.moveByOffset(x, y).click().build().perform(); |
Actions looks helpful . Thanks :) |
Can you try simpler operation, like a plain click on a button first to make sure that you have actions working? |
The actions are working fine for other cases of same App. Its just the swipe which is not working. |
If you still experience problems with swiping, please open a new issue, preferable with minimal test app to reproduce. Because we used swiping in our app, that we test, without problems. |
Currently it doesn't have support to get the size of an element.
And if we want to wait for an element to appear, that is also not there.
Can you please provide support for these two ?
The text was updated successfully, but these errors were encountered: