Closed EtherName closed 4 years ago
Also, there is a problem with the touch of any control on this Betfred mobile site. Also try different settings and different ways PhantomJS clicks - the usual, with the script and that's how
public bool FocusView(string xPath) {
var element = GetElement (xPath);
var action = new Actions (Driver);
action.MoveToElement (element, 2, 2) .Click () Perform ();
return true;
}
I tried to use mobile useragent, but nothing has changed. The problem is the same. PhantomJS sees everything and it all available, but can not click anything. Operating System and version PhantomJS same. Thank you.
Also, there is a problem with the main site Betfred. PhantomJS not load the main page frame.
<iframe id="sportframe" src='http://warp.betfred.com/UK/2/inplaysc?ver=19' width='820' height='1024' frameborder="0" scrolling="no" allowtransparency="true"></iframe>
The settings here are
var driverService = PhantomJSDriverService.CreateDefaultService();
driverService.HideCommandPromptWindow = true;
driverService.SslProtocol = "any";
driverService.IgnoreSslErrors = true;
var configOptions = new PhantomJSOptions();
configOptions.AddAdditionalCapability("phantomjs.page.settings.loadImages", true);
configOptions.AddAdditionalCapability("phantomjs.page.settings.loadPlugins", true);
configOptions.AddAdditionalCapability("takesScreenshot", false);
configOptions.AddAdditionalCapability("javascriptEnabled", true);
//configOptions.AddAdditionalCapability("elementScrollBehavior", 1);
if (_webRequestInfo != null && !string.IsNullOrWhiteSpace(_webRequestInfo.UserAgent))
configOptions.AddAdditionalCapability("phantomjs.page.settings.userAgent", _webRequestInfo.UserAgent);
IWebDriver Driver = new PhantomJSDriver(driverService, configOptions);
Driver.Manage().Window.Size = new System.Drawing.Size(1920, 1080);
Tried to change them, but no results. Operating System and version PhantomJS same. Or is it better to create new issues for this problem?
Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!
phantomjs --version
. 2.0.0 and 2.1.1I tried to press the buttons in different ways
On FirefoxDriver, all pressed
bool Click(string xPath, Func<bool> callbackAfterClick);
Maybe this is a stupid question, but I have not found an answer, in any forum. If this matter is not your competence, advise where to go. Screenshots will not be added as they are identical before and after pressing. Problem page is Horse racing betslip form on https://mobile.bet365.com/. Thank you in advance.