我在做@browser.some_button(:id => 'some_id').enabled?但即使按钮被禁用,它也总是向我返回真实值。
我尝试让睡眠一段时间,然后尝试查看工作流程中的按钮是否意外启用,但事实并非如此。
可能出了什么问题?
我的程序基本上要求用户输入,它会将登录数据,用户名等数据保存在文本文件中,并使用相同的文件检索数据并在输出控制台中显示.当程序执行时,用户可以在选项1到6之间进行选择,选项6用于存在于应用程序之外,其余选项从1到5用于用户输入数据和查看文件中存储的数据.
当程序在控制台中显示数据时,我看到许多不必要的ASCii代码.它为什么会出现,如何让它们出现?谢谢!!
int main() {
//Considering the max length of data entered (name) to be 15.
char data[15];
int n = 0, option = 0, count_n = 0;
//This is the initial mark alloted to a subject.
string empty = "00";
string proctor = "";
//Name of the file in which DB is stored.
ifstream f("Example.txt");
string line;
//The following for loop counts the total number of lines in the file.
for (int i = 0; std::getline(f, line); …Run Code Online (Sandbox Code Playgroud)