Closed GoogleCodeExporter closed 9 years ago
Fixed in https://codereview.chromium.org/663343003/ and will be in 2.12
Original comment by samu...@chromium.org
on 24 Oct 2014 at 5:49
Original comment by samu...@chromium.org
on 27 Oct 2014 at 8:47
Hi Samu, i'm using latest chromedriver with c#. I'm not able to perform any
actions in the emulation enabled window via webdriver actions. But i'm able to
click the buttons manually.
Checked with my development team and they suggested me to use TouchActions.
Tried with TouchActions too, but not able to implement TouchActions in my code.
Below is the piece of code used for TouchActions click:
IHasTouchScreen touchScreenDriver = WebDriverObj as IHasTouchScreen; --**
(This is returning null)
TouchActions touch = new TouchActions(WebDriverObj).SingleTap(login);
Can you please help me out in this.
Thanks.
Original comment by hemaacr...@gmail.com
on 17 Feb 2015 at 7:25
Hi,
Below is the piece of code used for emulation and it works fine.
Dictionary<String, String> mobileEmulation = new Dictionary<String, String>();
mobileEmulation.Add("deviceName", FrameGlobals.DeviceName);
ChromeOptions chromeCapabilities = new ChromeOptions();
chromeCapabilities.AddAdditionalCapability("mobileEmulation", mobileEmulation);
WebDriverObj = new ChromeDriver(chromeCapabilities);
WebDriverObj.Navigate().GoToUrl("http://mhub.ladbrokes.com/gaming/casino");
For TouchActions this is the code,
IHasTouchScreen touchScreenDriver = WebDriverObj as IHasTouchScreen;
IWrapsDriver wrapper = WebDriverObj as IWrapsDriver;
touchScreenDriver = wrapper.WrappedDriver as IHasTouchScreen;
wrapper = wrapper.WrappedDriver as IWrapsDriver;
this.touchScreen = touchScreenDriver.TouchScreen;
TouchActions touch = new
TouchActions(WebDriverObj).SingleTap(WebDriverObj.FindElement(By.XPath(login)));
It is throwing error. Can someone look into this.
Thanks.
Original comment by hemaacr...@gmail.com
on 17 Feb 2015 at 9:49
Original comment by samu...@chromium.org
on 21 Feb 2015 at 12:25
Can someone please help me?
Original comment by hemaacr...@gmail.com
on 23 Feb 2015 at 11:04
[deleted comment]
I actually have same problem.
some element can be clicked with element.Click() method.
however, some are not.
OS: Windows 7 SP1 x64
Chrome: 40.0.2214.115 m
Selenium: 2.44.0.0 C#
ChromeDriver: 2.14
Original comment by work.and...@gmail.com
on 24 Feb 2015 at 2:58
Original issue reported on code.google.com by
samu...@chromium.org
on 20 Oct 2014 at 10:49